import { type GatewayGoRoute } from "./gateway-go-routing.js"; export { GATEWAY_KEY_FILENAME } from "./ids.js"; declare const KEY_FORMAT_VERSION = 1; export interface GatewayKeyDocument { version: typeof KEY_FORMAT_VERSION; apiKey: string; enabled?: boolean; port?: number; opencodeGoEnabled?: boolean; opencodeGoRoute?: GatewayGoRoute | null; } export declare function gatewayKeyPath(dshHome?: string): string; export declare function generateGatewayApiKey(): string; export declare function gatewayKeysEqual(left: string, right: string): boolean; export declare function maskGatewayApiKey(apiKey: string): string; export declare function loadGatewayKeyDocument(path: string): Promise; export declare function loadOrCreateGatewayApiKey(path: string, configured?: string): Promise; export declare function persistGatewayApiKey(path: string, apiKey: string): Promise; export declare function persistGatewayKeyDocument(path: string, document: GatewayKeyDocument): Promise; //# sourceMappingURL=gateway-auth.d.ts.map