import type { Spaces } from '@towns-protocol/sdk'; import { type ActionConfig } from './internals/useAction'; /** * Hook to create a space. * @param config - Configuration options for the action. * @returns The `createSpace` action and its loading state. */ export declare const useCreateSpace: (config?: ActionConfig) => { data: { spaceId: string; defaultChannelId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; /** * Action to create a space. * @param opts - Options for the create space action. * @param signer - The signer used to create the space. */ createSpace: (params: Partial> & { spaceName: string; }, signer: import("ethers").Signer) => Promise<{ spaceId: string; defaultChannelId: string; }>; }; //# sourceMappingURL=useCreateSpace.d.ts.map