/**
 * Helpers for `olam auth issue-anthropic-token` (g4.1) cloud-mode UX.
 *
 * Extracted from auth.ts so the file-write + label-default logic is unit
 * testable without driving the commander action (which blocks on a stdin
 * cookie prompt). auth.ts delegates here; tests target this module directly
 * — same pattern as `auth-refresh-kubernetes.ts`.
 */
/**
 * Resolve the friendly token label. The label is just a handle for
 * `list-anthropic-tokens` + revocation, so it is optional: when omitted we
 * default to `<hostname>-<timestamp>`, unique per mint on a single laptop.
 */
export declare function resolveTokenLabel(label?: string): string;
export interface WriteBaseUrlResult {
    /** True when the file was written; false when skipped via `write: false`. */
    readonly wrote: boolean;
    /** Absolute path the URL was (or would have been) written to. */
    readonly path: string;
}
/**
 * Persist the cloud-mode bearer URL where auth-client's `resolveCloudUrl()`
 * expects it: `<home>/.olam/anthropic-base-url`, a single BARE trimmed URL
 * plus a trailing newline, chmod 600.
 *
 * Bare URL only — NO `export X='...'` shell wrapper and no quotes. The
 * resolver reads the file verbatim, `.trim()`s it, and parses one URL per
 * file; a shell-assignment line would break that contract.
 *
 * Returns `{ wrote: false }` (no filesystem touch) when `opts.write === false`
 * — the `--no-write-file` opt-out path.
 */
export declare function writeAnthropicBaseUrlFile(url: string, opts?: {
    write?: boolean;
    homeDir?: string;
}): WriteBaseUrlResult;
//# sourceMappingURL=anthropic-base-url-file.d.ts.map