export type PasskeyMode = 'auto' | 'renderer' | 'native'; export type PasskeyPath = 'renderer' | 'native' | 'unsupported'; export type StrategyEnv = { protocol: string; hostname: string; hasWebAuthn: boolean; nativeAvailable: boolean; platform: string; electronMajor: number; }; export declare function originSatisfiesRpId(env: Pick, rpId: string): boolean; /** * Prefer Chromium WebAuthn when the page origin can satisfy the RP ID. * Local bundles and older macOS Electron builds use the native bridge when available. */ export declare function decidePath(rpId: string, mode: PasskeyMode, env: StrategyEnv): PasskeyPath; /** * Whether a request can take the renderer path, evaluated without RP ID. * More loose than originSatisfiesRpId as we don't have an RP ID yet. * This informs if Chromium *can* service a request rather than *will service* */ export declare function canUseRendererPath(mode: PasskeyMode, env: StrategyEnv): boolean; //# sourceMappingURL=strategy.d.ts.map