/** * Has the user opted out? * * Default is ON for the operational facts above — an opt-OUT, which is what the * product intends and what the docs must say plainly. Anything that touches user * CONTENT is not covered by this and is not collected at all, at any setting. */ export declare function userConsents(): boolean; /** Record what the server said about this tenant's plan. */ export declare function setTelemetryEligible(serverUrl: string, allowed: boolean): void; /** Default NO: a server that never said yes never gets telemetry. */ export declare function serverAllowsTelemetry(serverUrl: string): boolean; /** Test seam. */ export declare function _resetTelemetryEligibility(): void; /** Both gates, for one target. */ export declare function mayReport(serverUrl: string): boolean; export interface SensitiveKeyViolation { key: string; where: string; } /** Every forbidden key in `obj`, deeply. Empty means safe to send. */ export declare function findSensitiveKeys(obj: unknown, where?: string): SensitiveKeyViolation[]; /** * Throw when a payload carries a forbidden key. * * Deliberately loud: a telemetry event that leaks a file path is a privacy * incident, and the cheapest place to stop it is the type of failure a developer * cannot ignore. */ export declare function assertNoSensitiveKeys(payload: unknown): void; //# sourceMappingURL=telemetry-consent.d.ts.map