import { Session } from '../@types';
export interface SpaceGateway {
    did: string;
    name: string;
    url: string;
    endpoint: string;
}
export interface SettingStorageEndpoint {
    (endpoint: string | undefined): void | Promise<void>;
}
interface ConfigUserSpaceContextType {
    loading: boolean;
    spaceGateway: SpaceGateway | undefined;
    session: Session;
    deleteSpaceGateway: (spaceGateway: SpaceGateway) => Promise<void>;
    updateSpaceGateway: (updateSpaceGateway: SpaceGateway) => Promise<void>;
    storageEndpoint: string;
    settingStorageEndpoint: SettingStorageEndpoint;
    hasStorageEndpoint: boolean;
}
declare const ConfigUserSpaceContext: import('react').Context<ConfigUserSpaceContextType>;
declare const Consumer: import('react').Consumer<ConfigUserSpaceContextType>;
declare function ConfigUserSpaceProvider({ children }: {
    children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
declare function useConfigUserSpaceContext(): ConfigUserSpaceContextType;
export { ConfigUserSpaceContext, ConfigUserSpaceProvider, Consumer as ConfigUserSpaceConsumer, useConfigUserSpaceContext, };
