/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { ErrorModel } from "./components/trustcaptcha-component/src/api/error/error-model"; export { ErrorModel } from "./components/trustcaptcha-component/src/api/error/error-model"; export namespace Components { interface TrustcaptchaComponent { /** * @default 'https://api.trustcomponent.com' */ "apiUrl": string; /** * @default false */ "autostartDisabled": boolean; /** * @default '' */ "bypassToken": string | null; /** * @default '' */ "design": string; /** * @default false */ "failoverEnabled": boolean; /** * @default null */ "framework": string | null; /** * @default false */ "fullWidth": boolean; /** * @default false */ "invisible": boolean; /** * @default 'right-border' */ "invisibleHint": 'hidden' | 'inline' | 'right-border' | 'right-bottom'; /** * @default 'auto' */ "language": string; /** * @default null */ "licenseKey": string | null; /** * @default false */ "minimalDataMode": boolean; "privacyUrl": string; "reset": () => Promise; "sitekey": string; "startVerification": () => Promise; /** * @default 'light' */ "theme": 'light' | 'dark' | 'media'; /** * @default 'tc-verification-token' */ "tokenFieldName": string; /** * @default '' */ "translations": string; /** * @default false */ "whiteLabel": boolean; } } export interface TrustcaptchaComponentCustomEvent extends CustomEvent { detail: T; target: HTMLTrustcaptchaComponentElement; } declare global { interface HTMLTrustcaptchaComponentElementEventMap { "captchaStarted": void; "captchaSolved": string; "captchaFailed": ErrorModel; "captchaExpired": void; "captchaReset": void; } interface HTMLTrustcaptchaComponentElement extends Components.TrustcaptchaComponent, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLTrustcaptchaComponentElement, ev: TrustcaptchaComponentCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTrustcaptchaComponentElement, ev: TrustcaptchaComponentCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLTrustcaptchaComponentElement: { prototype: HTMLTrustcaptchaComponentElement; new (): HTMLTrustcaptchaComponentElement; }; interface HTMLElementTagNameMap { "trustcaptcha-component": HTMLTrustcaptchaComponentElement; } } declare namespace LocalJSX { interface TrustcaptchaComponent { /** * @default 'https://api.trustcomponent.com' */ "apiUrl"?: string; /** * @default false */ "autostartDisabled"?: boolean; /** * @default '' */ "bypassToken"?: string | null; /** * @default '' */ "design"?: string; /** * @default false */ "failoverEnabled"?: boolean; /** * @default null */ "framework"?: string | null; /** * @default false */ "fullWidth"?: boolean; /** * @default false */ "invisible"?: boolean; /** * @default 'right-border' */ "invisibleHint"?: 'hidden' | 'inline' | 'right-border' | 'right-bottom'; /** * @default 'auto' */ "language"?: string; /** * @default null */ "licenseKey"?: string | null; /** * @default false */ "minimalDataMode"?: boolean; "onCaptchaExpired"?: (event: TrustcaptchaComponentCustomEvent) => void; "onCaptchaFailed"?: (event: TrustcaptchaComponentCustomEvent) => void; "onCaptchaReset"?: (event: TrustcaptchaComponentCustomEvent) => void; "onCaptchaSolved"?: (event: TrustcaptchaComponentCustomEvent) => void; "onCaptchaStarted"?: (event: TrustcaptchaComponentCustomEvent) => void; "privacyUrl"?: string; "sitekey"?: string; /** * @default 'light' */ "theme"?: 'light' | 'dark' | 'media'; /** * @default 'tc-verification-token' */ "tokenFieldName"?: string; /** * @default '' */ "translations"?: string; /** * @default false */ "whiteLabel"?: boolean; } interface TrustcaptchaComponentAttributes { "sitekey": string; "privacyUrl": string; "apiUrl": string; "framework": string | null; "language": string; "translations": string; "theme": 'light' | 'dark' | 'media'; "design": string; "autostartDisabled": boolean; "tokenFieldName": string; "bypassToken": string | null; "minimalDataMode": boolean; "fullWidth": boolean; "licenseKey": string | null; "invisible": boolean; "invisibleHint": 'hidden' | 'inline' | 'right-border' | 'right-bottom'; "whiteLabel": boolean; "failoverEnabled": boolean; } interface IntrinsicElements { "trustcaptcha-component": Omit & { [K in keyof TrustcaptchaComponent & keyof TrustcaptchaComponentAttributes]?: TrustcaptchaComponent[K] } & { [K in keyof TrustcaptchaComponent & keyof TrustcaptchaComponentAttributes as `attr:${K}`]?: TrustcaptchaComponentAttributes[K] } & { [K in keyof TrustcaptchaComponent & keyof TrustcaptchaComponentAttributes as `prop:${K}`]?: TrustcaptchaComponent[K] }; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "trustcaptcha-component": LocalJSX.IntrinsicElements["trustcaptcha-component"] & JSXBase.HTMLAttributes; } } }