import { LitElement, PropertyDeclarations, TemplateResult } from 'lit-element'; import { API } from '@foxy.io/sdk/customer'; declare const CustomerApi_base: typeof LitElement & import("lit-element").Constructor & { inferredProperties: string[]; } & import("lit-element").Constructor; /** * Element connector for Customer API. * * @fires CustomerApi#signout - Instance of `CustomerApi.SignOutEvent`. Dispatched on an element when session expires or code 401 is returned. * @fires CustomerApi#signin - Instance of `CustomerApi.SignInEvent`. Dispatched on an element once authenticated. * @fires CustomerApi#signup - Instance of `CustomerApi.SignUpEvent`. Dispatched on an element once a customer is created (since v1.24.0). * * @element foxy-customer-api * @since 1.4.0 */ export declare class CustomerApi extends CustomerApi_base { static readonly SignOutEvent: { new (typeArg: string, eventInitDict?: CustomEventInit | undefined): { readonly detail: void; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: void): void; readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; readonly composed: boolean; readonly currentTarget: EventTarget | null; readonly defaultPrevented: boolean; readonly eventPhase: number; readonly isTrusted: boolean; returnValue: boolean; readonly srcElement: EventTarget | null; readonly target: EventTarget | null; readonly timeStamp: number; readonly type: string; composedPath(): EventTarget[]; initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void; preventDefault(): void; stopImmediatePropagation(): void; stopPropagation(): void; readonly AT_TARGET: number; readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; readonly NONE: number; }; }; static readonly SignInEvent: { new (typeArg: string, eventInitDict?: CustomEventInit<{ forcePasswordReset: boolean; }> | undefined): { readonly detail: { forcePasswordReset: boolean; }; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: { forcePasswordReset: boolean; }): void; readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; readonly composed: boolean; readonly currentTarget: EventTarget | null; readonly defaultPrevented: boolean; readonly eventPhase: number; readonly isTrusted: boolean; returnValue: boolean; readonly srcElement: EventTarget | null; readonly target: EventTarget | null; readonly timeStamp: number; readonly type: string; composedPath(): EventTarget[]; initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void; preventDefault(): void; stopImmediatePropagation(): void; stopPropagation(): void; readonly AT_TARGET: number; readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; readonly NONE: number; }; }; static readonly SignUpEvent: { new (typeArg: string, eventInitDict?: CustomEventInit | undefined): { readonly detail: void; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: void): void; readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; readonly composed: boolean; readonly currentTarget: EventTarget | null; readonly defaultPrevented: boolean; readonly eventPhase: number; readonly isTrusted: boolean; returnValue: boolean; readonly srcElement: EventTarget | null; readonly target: EventTarget | null; readonly timeStamp: number; readonly type: string; composedPath(): EventTarget[]; initEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined): void; preventDefault(): void; stopImmediatePropagation(): void; stopPropagation(): void; readonly AT_TARGET: number; readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; readonly NONE: number; }; }; static get properties(): PropertyDeclarations; private __storage; private __level; private __base; private __api; private __handleFetch; get isLoggedIn(): boolean; /** `FoxySDK.Customer.API` instance used by this element to communicate with the backend. */ get api(): API; /** Bookmark URL for this API. This is where the tree traversal begins. We also use this URL as a base for relative paths. */ get base(): string; set base(value: string); /** Numeric Consola log level. If omitted, Consola defaults will be used. */ get level(): number; set level(value: number); /** Credentials storage implementing Web Storage API. Access tokens and other related info will be stored here. Defaults to in-memory storage. */ get storage(): 'session' | 'cookie' | 'local'; set storage(value: 'session' | 'cookie' | 'local'); connectedCallback(): void; render(): TemplateResult; disconnectedCallback(): void; private __createAPIInstance; private __handleVirtualAuthSessionDelete; private __handleVirtualAuthSessionPost; private __handleVirtualAuthSessionAny; private __handleVirtualAuthRecoverPost; private __handleVirtualAuthRecoverAny; private __handleVirtualAuthSignUpPost; private __handleVirtualAuthSignUpAny; private __handleRequest; } export {};