export declare const TOKEN_FILE_MODE = 384; export declare const TOKEN_FILE_DIR_MODE = 448; /** * Compute the path to the token file. Uses `os.homedir()` so tests can stub * `HOME` rather than the path being hardcoded. */ export declare function tokenFilePath(home?: string): string; export interface ReadTokenFileDeps { log?: (line: string) => void; home?: string; } /** * Read the token file. Returns null if the file is missing, empty, or has * a mode wider than 0600. Never throws. */ export declare function readTokenFile(deps?: ReadTokenFileDeps): Promise; export interface WriteTokenFileDeps { home?: string; } /** * Write the token to `~/.config/agentlint/token` with mode 0600. Creates * the parent directory if necessary. Overwrites any existing file. */ export declare function writeTokenFile(token: string, deps?: WriteTokenFileDeps): Promise; /** * Delete the token file. Idempotent — missing file is not an error. */ export declare function unlinkTokenFile(deps?: WriteTokenFileDeps): Promise; //# sourceMappingURL=token-file.d.ts.map