import { GenericData } from '@knocklabs/types'; import { Store } from '@tanstack/store'; import { default as Knock } from '../../knock'; import { Any, ConstructorOpts, DebugState, GroupStage, GuideData, GuideStepData, KnockGuide, KnockGuideStep, QueryFilterParams, QueryStatus, SelectFilterParams, SelectGuideOpts, SelectGuidesOpts, StoreState, TargetParams } from './types'; export declare const DEBUG_QUERY_PARAMS: { GUIDE_KEY: string; PREVIEW_SESSION_ID: string; }; export declare const guidesApiRootPath: (userId: string | undefined | null) => string; export declare const checkActivatable: (guide: KnockGuide, location: string | undefined) => boolean; export declare class KnockGuideClient { readonly knock: Knock; readonly channelId: string; readonly targetParams: TargetParams; readonly options: ConstructorOpts; store: Store StoreState>; private socket; private socketChannel; private socketChannelTopic; private socketEventTypes; private subscribeRetryCount; private pushStateFn; private replaceStateFn; private stage; private counterIntervalId; constructor(knock: Knock, channelId: string, targetParams?: TargetParams, options?: ConstructorOpts); private incrementCounter; private startCounterInterval; private clearCounterInterval; cleanup(): void; fetch(opts?: { filters?: QueryFilterParams; force?: boolean; }): Promise; subscribe(): void; private handleChannelJoinError; unsubscribe(): void; private handleSocketEvent; setLocation(href: string, additionalParams?: Partial): void; exitDebugMode(): void; setDebug(debugOpts?: Omit): void; unsetDebug(opts?: { listenForUpdates?: boolean; }): void; selectGuides(state: StoreState, filters?: SelectFilterParams, opts?: SelectGuidesOpts): KnockGuide[]; selectGuide(state: StoreState, filters?: SelectFilterParams, opts?: SelectGuideOpts): KnockGuide | undefined; private maybeRecordSelectResult; getStage(): GroupStage | undefined; private openGroupStage; private closePendingGroupStage; private patchClosedGroupStage; private clearGroupStage; private ensureClearTimeout; private _selectGuide; private _selectGuides; markAsSeen(guide: GuideData, step: GuideStepData): Promise | undefined>; markAsInteracted(guide: GuideData, step: GuideStepData, metadata?: GenericData): Promise | undefined>; markAsArchived(guide: GuideData, step: GuideStepData): Promise | undefined>; resetEngagement(guide: GuideData): Promise; private shouldSkipEngagementApi; private localCopy; private buildQueryParams; private formatQueryKey; private setStepMessageAttrs; private buildEngagementEventBaseParams; private addOrReplaceGuide; private removeGuide; private addOrReplaceGuideGroup; private updatePreviewGuide; private handleLocationChange; private checkDebugStateChanged; private listenForLocationChangesFromWindow; removeLocationChangeEventListeners(): void; static getToolbarRunConfigFromUrl(): import('./helpers').ToolbarV2RunConfig; } //# sourceMappingURL=client.d.ts.map