Files
SAFEKISO/safekiso-server/node_modules/snyk/dist/lib/analytics/index.d.ts
2026-04-07 14:50:23 +09:00

19 lines
638 B
TypeScript

import * as needle from 'needle';
/**
*
* @param data the data to merge into that data which has been staged thus far (with the {@link add} function)
* and then sent to the backend.
*/
export declare function addDataAndSend(data: any): Promise<void | {
res: needle.NeedleResponse;
body: any;
}>;
export declare function allowAnalytics(): boolean;
/**
* Adds a key-value pair to the analytics data `metadata` field. This doesn't send the analytics, just stages it for
* sending later (via the {@link addDataAndSend} function).
* @param key
* @param value
*/
export declare function add(key: string, value: unknown): void;