import { z } from 'zod'; export declare const CredentialsFileSchema: z.ZodObject<{ version: z.ZodLiteral<1>; credentials: z.ZodRecord>; }, "strict", z.ZodTypeAny, { version: 1; credentials: Record; }, { version: 1; credentials: Record; }>; export type CredentialsFile = z.infer; /** Default store location, honouring `$XDG_CONFIG_HOME`. */ export declare function credentialsPath(env?: Record): string; /** Canonical store key for an instance URL: URL-parsed (lowercased host), trailing slashes stripped. */ export declare function normalizeApiUrl(raw: string): string; /** Parse the store. `null` when the file does not exist; throws (naming the path) when broken. */ export declare function readCredentialsFile(file: string): CredentialsFile | null; export declare function getStoredKey(apiUrl: string, file?: string): string | undefined; export declare function storeKey(apiUrl: string, apiKey: string, file?: string, now?: Date): void; /** Remove an instance's entry. Returns whether anything was removed. */ export declare function removeKey(apiUrl: string, file?: string): boolean;