/** Explains why a session saved by c15t before Inth no longer signs anyone in. */ export declare const LEGACY_SESSION_NOTICE = "The c15t session saved in ~/.c15t/config.json by earlier CLI versions is no longer used. Run `c15t login` to sign in with Inth."; /** * Path of the plaintext credential file written by c15t before Inth owned * authentication. Earlier versions had no override for this location. * @returns Absolute path to `~/.c15t/config.json`. */ export declare const getLegacyCredentialsPath: () => string; /** * Check for the legacy credential file without reading its tokens. * @returns True when `~/.c15t/config.json` exists. */ export declare const hasLegacyCredentials: () => Promise; /** * Delete the legacy plaintext credential file, leaving the rest of `~/.c15t`. * @returns True when a file was removed. * @throws {CliError} FILE_WRITE_ERROR when the file exists but cannot be removed. */ export declare const removeLegacyCredentials: () => Promise; /** * Add the legacy-session notice to a not-logged-in error when the old file exists. * @param error Any error raised by a hosted command. * @returns The same error, or a not-logged-in error that explains the old session. */ export declare const withLegacySessionNotice: (error: unknown) => Promise;