import type { TGuidely, TGuidelyOptions, TGuidelyRuntimeSnapshot, TGuidelyStartOptions, TGuidelyStartResult } from "@sendsay-ru/guidely"; import type { ReactNode } from "react"; export type TGuidelyProviderProps = Omit & { /** * Controls whether the Guidely runtime is created. * * This lets the provider stay mounted while an application loads its state * adapter, so toggling readiness does not remount the provider's children. */ enabled?: boolean; adapter?: TGuidelyOptions["adapter"]; /** * The user's locale, for example "ru". A new locale reaches the running instance through * `setLocale` without recreating it, so a running tour switches its language. */ locale?: string; /** * The page the user is on, for example `useLocation().pathname`. Flows with a route trigger * start when it matches their path. A new path reaches the running instance without * recreating it. */ path?: string; children: ReactNode; }; export type TGuidelyStore = { getInstance: () => TGuidely | null; setInstance: (guidely: TGuidely | null) => void; subscribe: (listener: () => void) => () => void; getSnapshot: () => TGuidelyRuntimeSnapshot; }; export type TUseGuidelyResult = { activeFlow: TGuidelyRuntimeSnapshot["activeFlow"]; promptedFlow: TGuidelyRuntimeSnapshot["promptedFlow"]; isReady: boolean; snapshot: TGuidelyRuntimeSnapshot; start: (flowId: string, opts?: TGuidelyStartOptions) => Promise; next: () => void; prev: () => void; skip: () => void; complete: () => void; goTo: (stepId: string) => void; stop: () => void; setLocale: (locale: string) => void; }; //# sourceMappingURL=types.d.ts.map