/** * Minimal CLI-side client for the Vigil AWS Lambda callable surface. * * Mirrors the `httpsCallable` envelope used by the portal: * POST /callable/ * Authorization: Bearer * { data: ... } * * Used by the cron / webhook / HITL tools so they can talk to the same * Lambda + Firestore the portal does. Auth is best-effort: if the user * has not signed in, callable requests fail with a clear message rather * than throwing — the calling tool decides whether the missing auth is * fatal or fallback-able. */ export declare const LAMBDA_API_BASE = "https://cfqeqx4lt9.execute-api.us-east-1.amazonaws.com"; export interface LambdaCallResult { ok: boolean; status?: number; result?: T; error?: string; } interface CachedAuth { uid?: string; token?: string; tokenExpiresAt?: number; refreshToken?: string; } export declare function readCliAuth(): CachedAuth | null; export declare function callLambda(name: string, data: Record | undefined, options?: { signal?: AbortSignal; baseUrl?: string; timeoutMs?: number; }): Promise>; export {}; //# sourceMappingURL=lambdaClient.d.ts.map