/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ /** * WebAuthn displayName constants for passkeys rebranding */ export declare const WEBAUTHN_DISPLAY_NAMES: { readonly DEFAULT: "Security Key or Biometric"; readonly PASSKEYS: "Passkeys"; }; /** * Variant key mapping for i18n keys with DEFAULT/PASSKEYS/CUSTOM variants */ interface VariantKeyMap { DEFAULT: string; PASSKEYS: string; CUSTOM: string; } /** * i18n key mappings based on context and displayName * Organized by keys that have variants vs static keys */ interface WebAuthnI18nKeys { ENROLL_TITLE: VariantKeyMap; VERIFY_TITLE: VariantKeyMap; DESCRIPTION: VariantKeyMap; SELECT_ENROLL_LABEL: VariantKeyMap; SELECT_VERIFY_LABEL: VariantKeyMap; LABEL: VariantKeyMap; ENROLL_INSTRUCTIONS: VariantKeyMap; VERIFY_INSTRUCTIONS: VariantKeyMap; } export declare const WEBAUTHN_I18N_KEYS: WebAuthnI18nKeys; /** * Checks if displayName is a custom value (not DEFAULT, not PASSKEYS) */ export declare const isCustomDisplayName: (displayName?: string) => boolean; /** * Determines which i18n key to use based on displayName * Handles both variant key maps (objects with DEFAULT/PASSKEYS/CUSTOM) * and static keys (strings) */ export declare const getWebAuthnI18nKey: (keyMap: VariantKeyMap | string, displayName?: string) => string | null; /** * Gets parameters for i18n string replacement (for CUSTOM case) */ export declare const getWebAuthnI18nParams: (displayName?: string) => string[]; export {}; //# sourceMappingURL=webauthnDisplayNameUtils.d.ts.map