export declare type SupportedLocaleCode = "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pt" | "ru" | "zh-CN" | "zh-TW"; export declare type SupportedLocales = SupportedLocaleCode[]; export declare type OptionalClass = "black" | "white"; export declare type ModalPosition = "top" | "bottom"; export declare type ColorMode = "light" | "dark"; export declare type ObservedAttribute = "visible" | "modal_position" | "color_mode" | "hide_call_to_action" | "padding"; export declare type UserInputAttribute = "data-onepassword-type" | "value" | "lang" | "class" | "data-theme" | "padding"; export declare type Padding = "normal" | "compact" | "none"; export declare type OPItemType = "credit-card" | "api-key" | "login"; export declare const enum AutofillType { None = "none", Name = "name", HonorificPrefix = "honorific-prefix", GivenName = "given-name", AdditionalName = "additional-name", FamilyName = "family-name", HonorificSuffix = "honorific-suffix", Nickname = "nickname", OrganizationTitle = "organization-title", Username = "username", NewPassword = "new-password", CurrentPassword = "current-password", OneTimeCode = "one-time-code", Organization = "organization", StreetAddress = "street-address", AddressLine1 = "address-line1", AddressLine2 = "address-line2", AddressLine3 = "address-line3", AddressLevel1 = "address-level1", AddressLevel2 = "address-level2", AddressLevel3 = "address-level3", AddressLevel4 = "address-level4", Country = "country", CountryName = "country-name", PostalCode = "postal-code", CcName = "cc-name", CcGivenName = "cc-given-name", CcAdditionalName = "cc-additional-name", CcFamilyName = "cc-family-name", CcNumber = "cc-number", CcExp = "cc-exp", CcExpMonth = "cc-exp-month", CcExpYear = "cc-exp-year", CcCsc = "cc-csc", CcType = "cc-type", TransactionCurrency = "transaction-currency", TransactionAmount = "transaction-amount", Language = "language", Bday = "bday", BdayDay = "bday-day", BdayMonth = "bday-month", BdayYear = "bday-year", Sex = "sex", Url = "url", Photo = "photo", Tel = "tel", TelCountryCode = "tel-country-code", TelNational = "tel-national", TelAreaCode = "tel-area-code", TelLocal = "tel-local", TelLocalPrefix = "tel-local-prefix", TelLocalSuffix = "tel-local-suffix", TelExtension = "tel-extension", Email = "email", Impp = "impp" } export declare type SaveRequestField = { autocomplete: AutofillType; value: string; }; export interface SaveRequest { title: string; fields: SaveRequestField[]; notes?: string; urls?: string[]; } declare global { namespace JSX { interface IntrinsicElements { "onepassword-save-button": OPSaveButton; } interface OPSaveButton { "data-onepassword-type": OPItemType; value: string; lang?: SupportedLocaleCode; class?: OptionalClass; "data-theme": ColorMode; padding?: Padding; } } } export declare function activateOPButton(): void; export declare function encodeOPSaveRequest(saveRequest: SaveRequest): string | undefined;