export type OAuthKeyCredentials = {
    privateKeyHex?: string;
    mnemonic?: string;
    mnemonicPassphrase?: string;
    bearerToken?: string;
};
export declare class OAuthKeySessionStore {
    private readonly sessions;
    private readonly ttlMs;
    constructor(ttlMs?: number);
    create(nowMs?: number): string;
    isValid(token: string | undefined, nowMs?: number): boolean;
    cleanup(nowMs?: number): void;
}
export declare function getConfiguredOAuthKeyToken(): string | null;
export declare function deriveOAuthKeyTokenFromCredentials(credentials: OAuthKeyCredentials): string;
export declare function isOauthKeyCredentialValid(credentials: OAuthKeyCredentials): {
    ok: boolean;
    reason?: string;
};
export declare function normalizeOauthNextPath(nextRaw: string | undefined): string;
//# sourceMappingURL=oauth_key_gate.d.ts.map