export declare const REFRESH_TOKEN_PREFIX = "rt_";
export declare const LOOKUP_BYTES = 7;
export declare const SECRET_BYTES = 32;
export declare const LEGACY_CUTOFF: Date;
export type ParsedRefreshToken = {
    kind: "new";
    lookup: string;
    secret: string;
} | {
    kind: "legacy";
    id: string;
};
export declare function generateRefreshTokenParts(): {
    lookup: string;
    secret: string;
};
export declare function hashRefreshTokenSecret(secret: string): Promise<string>;
export declare function formatRefreshToken(lookup: string, secret: string): string;
export declare function parseRefreshToken(token: string): ParsedRefreshToken;
export declare function isLegacyRefreshTokenAccepted(now?: Date): boolean;
