import type { StoredCredentials } from "../gateway/GatewayConfig.js"; import type { CliProcess } from "./CliProcess.js"; /** Where `agentsafe login` keeps what it stored: `$AGENTSAFE_HOME`, else the XDG config directory. */ export declare function credentialsDirectory(io: CliProcess): string; export declare function credentialsPath(io: CliProcess): string; /** * The stored login, or null when there is none or it cannot be read as one. * Production never reads it: a server's credential is mounted, not logged * in, and the gateway's loader refuses the layer there. */ export declare function readCredentials(io: CliProcess): StoredCredentials | null; /** Writes the login, readable by this user alone. */ export declare function writeCredentials(io: CliProcess, credentials: StoredCredentials): string; export declare function removeCredentials(io: CliProcess): string; //# sourceMappingURL=Credentials.d.ts.map