import type { HandlerConfig, HandlerRequest, HandlerResponse } from './types.js'; import { createClient } from './controller-edge-client/client/client.gen.js'; type ManagementClient = ReturnType; export type ApiCall = (client: ManagementClient, ztSession: string | null) => Promise; /** Clear the cached session so the next call re-authenticates. */ export declare function invalidateSession(): void; export declare function withAuthenticatedClient(request: HandlerRequest, config: HandlerConfig, operationName: string, apiCall: ApiCall): Promise; export {};