declare namespace UserLeap { const SurveyState: { READY: string; DISABLED: string; NO_SURVEY: string; }; const SprigUserInterfaceMode: { unspecified: number; light: number; dark: number; }; function overrideUserInterfaceMode(mode: SprigUserInterfaceMode): void; function visitorIdentifier(): number; function visitorIdentifierString(): string; function sdkVersion(): string; function configure(environment: string, configuration?: {[key: string]: any}): void; function setPreviewKey(previewKey: string): void; function presentSurvey(): void; /** * @deprecated This function is outdated. Use `trackEvent()` instead. */ function track(event: string, surveyStateCallback: ((surveyState: string) => void)): void; /** * @deprecated This function is outdated. Use `trackEventWithProperties()` instead. */ function trackWithProperties(event: string, userId: string | undefined, partnerAnonymousId: string | undefined, properties: {[key: string]: any}, surveyStateCallback: ((surveyState: string) => void)): void; /** * @deprecated This function is outdated. Use `trackEventAndIdentify()` instead. */ function trackAndIdentify(event: string, userId: string | undefined, partnerAnonymousId: string | undefined, surveyStateCallback: ((surveyState: string) => void)): void; function trackEvent( event: string, surveyResultCallback: (result: { surveyState: string; surveyId: number }) => void ): void; function trackEventWithProperties( event: string, userId: string | undefined, partnerAnonymousId: string | undefined, properties: { [key: string]: any }, surveyResultCallback: (result: { surveyState: string; surveyId: number }) => void ): void; function trackEventAndIdentify( event: string, userId: string | undefined, partnerAnonymousId: string | undefined, surveyResultCallback: (result: { surveyState: string; surveyId: number }) => void ): void; function setEmailAddress(emailAddress: string): void; function setVisitorAttribute(key: string, value: string): void; function setVisitorAttributes(attributes: {[key: string]: string}): void; function removeVisitorAttributes(keys: [string]): void; function setVisitorAttributesAndIdentify(attributes: {[key: string]: string}, userId: string | undefined, partnerAnonymousId: string | undefined): void; function setUserIdentifier(identifier: string): void; function logout(): void; function dismissActiveSurvey(): void; function pauseDisplayingSurveys(): void; function unpauseDisplayingSurveys(): void; function trackAndPresent(event: string): void; function trackIdentifyAndPresent(event: string, userId: string | undefined, partnerAnonymousId: string | undefined): void; } export default UserLeap;