import { Space } from '@graphprotocol/hypergraph'; type UsePublicSpacesParams = Readonly<{ filter?: Space.FindManyPublicParams['filter']; enabled?: boolean; }>; export declare const usePublicSpaces: (params?: UsePublicSpacesParams) => { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; } | { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; error: null; isError: false; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; isPlaceholderData: false; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; } | { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: true; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; } | { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; error: null; isError: false; isPending: true; isLoading: true; isLoadingError: false; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "pending"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; } | { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; error: null; isError: false; isPending: true; isLoadingError: false; isRefetchError: false; isSuccess: false; isPlaceholderData: false; status: "pending"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isLoading: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; } | { data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; isError: false; error: null; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; isPlaceholderData: true; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise[]; }, Error>>; fetchStatus: import("@tanstack/react-query").FetchStatus; promise: Promise<{ data: { readonly name: string; readonly id: string; readonly type: "PERSONAL" | "DAO"; readonly avatar?: string | undefined; readonly cover?: string | undefined; readonly editorIds: readonly string[]; readonly memberIds: readonly string[]; }[]; invalidSpaces: Record[]; }>; }; export {}; //# sourceMappingURL=usePublicSpaces.d.ts.map