/** * Default configuration for FIDO2-JS SDK * * Provides sensible defaults including externalized AAGUID for UltraPass * authenticator and configurable API endpoints. * * @module config/defaults */ import { SDKConfig } from '../types/config'; /** * Verify endpoint per environment. * * The path is `/v4/fido2/verify`. Earlier `/verify` and `/v2/verify` paths are superseded. * * Only the public production service has a default. Non-production deployments are * environment-specific and are deliberately not baked into this package — point * `apiEndpoints.verify` at your own backend, or set `FIDO2_VERIFY_URL`. * * **The verify host must match the backend the authenticator is configured against.** The JWE * is minted under the policy that host served, so verifying it elsewhere checks the proof * against the wrong policy and fails after registration has already succeeded. */ export declare const VERIFY_ENDPOINTS: { readonly production: "https://fido2-server.privateid.com/v4/fido2/verify"; }; /** * iOS UltraPass URL scheme per environment. * * Production and staging UltraPass are distinct apps installable side by side, each * registering its own scheme. The scheme must match the build on the device, and pairs with * the backend that build talks to. * * Non-production defaults to the staging app. */ export declare const ULTRAPASS_SCHEMES: { readonly development: "ultrapass-staging"; readonly staging: "ultrapass-staging"; readonly production: "ultrapass"; }; /** * Default SDK configuration * * This configuration externalizes the previously hardcoded AAGUID from * webauthn.js (lines 57-60) and provides environment variable support * for API endpoints. * * Users can override any of these values when creating the SDK instance. * * @example * ```typescript * const sdk = new FIDO2SDK({ * apiKey: 'your-api-key', * authenticators: { * ultrapass: { * aaguid: 'custom-aaguid', * name: 'Custom UltraPass' * } * } * }); * ``` */ export declare const DEFAULT_CONFIG: Omit; /** * Helper function to merge user configuration with defaults * * @param userConfig - User-provided configuration (may be partial) * @returns Complete SDK configuration * * @example * ```typescript * const config = mergeConfig({ apiKey: 'key', timeout: 30000 }); * // Returns: { ...DEFAULT_CONFIG, apiKey: 'key', timeout: 30000 } * ``` */ export declare function mergeConfig(userConfig: Partial & { apiKey: string; }): SDKConfig; //# sourceMappingURL=defaults.d.ts.map