import type { Config, Exchange, PostExchangeData } from '@farfetch/blackout-client'; import type { UseExchangeOptions } from './types/useExchange.js'; /** * Provides facilities to manage an exchange. */ declare function useExchange(exchangeId?: Exchange['id'], options?: UseExchangeOptions): { isLoading: boolean; error: import("@farfetch/blackout-redux").Nullable; data: Exchange | undefined; actions: { fetch: (config?: Config | undefined, exchangeId?: Exchange['id'] | undefined) => Promise; create: (data: PostExchangeData, config?: Config | undefined) => Promise; fetchExchangeBookRequest: (exchangeId?: string | undefined, bookRequestId?: string | undefined, config?: Config | undefined) => Promise; createExchangeBookRequest: (exchangeId: string | undefined, data: import("@farfetch/blackout-client").PostExchangeBookRequestData, config?: Config | undefined) => Promise; createExchangeFilter: (exchangeFilterData: import("./index.js").PostExchangeFilterDataHook, config?: Config | undefined) => Promise; }; }; export default useExchange;