export type CredFields = Record; export type CredStore = Record; /** Options shared by every `cred` subcommand. */ export interface CredOptions { /** * Store the credential server-side (account-scoped) via the * `/v0/accounts/credentials/:kind` endpoints instead of the local * `~/.config/tokenrip/credentials.json` file. */ server?: boolean; } /** * Path to the local credentials file. * * Honors `TOKENRIP_HOME` for tests and for operators who want to relocate the * config tree. Falls back to the user's home directory. */ export declare function credPath(): string; export declare function readCreds(): CredStore; export declare function writeCreds(store: CredStore): void; /** * Parse a raw argv tail (after `cred set `) into a flat `{key: value}` * map. Accepts: * * --api-key=abc * --api-key abc * * Field-name casing depends on the destination: * - local (default): long-option names are camel-cased (`--api-key` → `apiKey`) * - `--server`: long-option names are snake-cased (`--api-key` → `api_key`) * so they match the backend `credentialSchema` keys. * * Short options are not supported. */ export declare function parseFieldArgs(rawArgs: string[], opts?: CredOptions): CredFields; export declare function credSet(kind: string, rawArgs: string[], opts?: CredOptions): Promise; export declare function credGet(kind: string, opts?: CredOptions): Promise; export declare function credList(opts?: CredOptions): Promise; export declare function credUnset(kind: string, opts?: CredOptions): Promise;