export interface ConsentInputs { env: Record; /** true if the config file records an explicit opt-out */ optedOut: boolean; /** true for callers inside the running app (dev server); false for the CLI */ runtime: boolean; } export interface ConsentResult { allowed: boolean; reason: string; } /** The one spelling of an env flag being on, shared by every reader. */ export declare function truthy(v: string | undefined): boolean; /** * True when an environment opt-out is in effect (VENDO_TELEMETRY_DISABLED, * DO_NOT_TRACK, or CI). Used both by resolveConsent (to gate track()) and by * loadConfig (to avoid minting/persisting a tracking id the user opted out of). */ export declare function envOptOut(env: Record): boolean; export declare function resolveConsent({ env, optedOut, runtime }: ConsentInputs): ConsentResult;