import type { IncomingMessage } from "node:http";
export interface PairAccountResult {
    accountId: string;
    status: "new" | "existing" | "unknown";
    suggestedAccountId?: string;
}
export declare function getOrCreateAccountId(params: {
    deviceId: string;
    claimAccountId?: string;
    claimConfirmed?: boolean;
    historyDir?: string;
}): PairAccountResult;
export declare function isKnownAccountId(accountId: string, historyDir?: string): boolean;
export declare function resolveAccountIdFromRequest(req: IncomingMessage): string | null;
