import type { PinSource } from "./affinity.ts";
import type { AuthenticatedAttemptInput } from "./auth-attempt.ts";
type AccountContext = {
    readonly accountLabel: string;
    readonly accountSource: "login" | "import" | "env" | "ambient" | "unknown";
    readonly pinSource?: PinSource;
};
export declare function attemptAccountContext(auth: AuthenticatedAttemptInput): AccountContext;
export declare function rememberAccountContext(target: unknown, context: AccountContext): void;
/** Keep the original SDK error and its usage/classification unchanged. */
export declare function inheritAccountContext<T extends Error>(event: object, error: T): T;
export declare function errorAccountContext(error: unknown): AccountContext | undefined;
export declare function logAttemptAccount(auth: AuthenticatedAttemptInput, sessionId: string | undefined): void;
export {};
//# sourceMappingURL=account-context.d.ts.map