export type GatewayDeployment = 'local' | 'cloud'; export interface ParsedGatewayApiKey { version: 'v1'; deployment: GatewayDeployment; keyId: string; secret: string; } export interface GatewayApiKeyRecordInput { id: string; secretHash: string; deployment: GatewayDeployment; } export interface CreatedGatewayApiKey { plaintext: string; secret: string; record: GatewayApiKeyRecordInput; } export interface CreateGatewayApiKeyInput { deployment: GatewayDeployment; keyId?: string; secret?: string; } export declare function createGatewayApiKey(input: CreateGatewayApiKeyInput): Promise; export declare function createGatewayKeyId(): string; export declare function formatGatewayApiKey(parsed: ParsedGatewayApiKey): string; export declare function parseGatewayApiKey(value: string): ParsedGatewayApiKey | undefined; export declare function hashGatewayApiKeySecret(secret: string): Promise; export declare function verifyGatewayApiKeySecret(secret: string, encodedHash: string): Promise;