import type { Squid } from "@0xsquid/sdk"; import type { WidgetRoute } from "../core/routes"; import type { AppConfig, DestinationTokenConfig } from "../core/types/config"; import type { SwapRoute } from "../core/types/swap"; import type { TransactionHistoryStore, TransactionParams } from "../core/types/transaction"; export interface SquidConfigState { squid?: Squid; fromPrice?: string; toPrice?: number; currentTransaction?: TransactionParams; currentRequestId?: string; config: AppConfig; selectedDestinationTokenConfig?: DestinationTokenConfig; } export declare const useSquidStore: import("zustand").UseBoundStore>; export interface SquidRouter { history: { route: WidgetRoute; params?: { [key: string]: any | undefined; }; }[]; resetHistory: () => void; } export declare const useSquidRouterStore: import("zustand").UseBoundStore>; /** * Persist the store in local storage * So the user can refresh the page and still see his old transactions */ export declare const usePersistStore: import("zustand").UseBoundStore, "persist"> & { persist: { setOptions: (options: Partial>) => void; clearStorage: () => void; rehydrate: () => void | Promise; hasHydrated: () => boolean; onHydrate: (fn: (state: { transactionsHistory?: TransactionHistoryStore[] | undefined; }) => void) => () => void; onFinishHydration: (fn: (state: { transactionsHistory?: TransactionHistoryStore[] | undefined; }) => void) => () => void; getOptions: () => Partial>; }; }>; export declare const useSwapRoutePersistStore: import("zustand").UseBoundStore, "persist"> & { persist: { setOptions: (options: Partial>) => void; clearStorage: () => void; rehydrate: () => void | Promise; hasHydrated: () => boolean; onHydrate: (fn: (state: { swapRoute?: SwapRoute | undefined; destinationAddressHasBeenUpdated?: { updated: boolean; filledFromWallet: boolean; } | undefined; }) => void) => () => void; onFinishHydration: (fn: (state: { swapRoute?: SwapRoute | undefined; destinationAddressHasBeenUpdated?: { updated: boolean; filledFromWallet: boolean; } | undefined; }) => void) => () => void; getOptions: () => Partial>; }; }>;