import type { Observable, SyncAgent } from '@towns-protocol/sdk'; import { type ObservableConfig } from './useObservable'; type SyncSelector = SyncAgent['observables']; /** * Hook to get an observable from the sync agent. * * An alternative of our premade hooks, allowing the creation of custom abstractions. * @param selector - A selector function to get a observable from the sync agent. * @param config - Configuration options for the observable. * @returns The data from the selected observable. */ export declare function useTowns(selector: (sync: SyncSelector) => Observable, config?: ObservableConfig.FromData): import("./useObservable").ObservableValue ? UnwrappedData : T>; export {}; //# sourceMappingURL=useTowns.d.ts.map