import { Ref } from 'vue';
import { Connector } from '../definitions/shared/connector';
export interface UseConnectorLoaderReturn {
    connectors: Ref<Connector[]>;
    isLoading: Ref<boolean>;
    error: Ref<string | null>;
    /** Re-invokes the loader. Resolves once the new list is committed. */
    refresh: () => Promise<void>;
    /** True while a per-id `connect()` is pending. */
    isConnecting: Ref<Record<string, boolean>>;
    /** Calls the caller-supplied `onConnect` then refreshes the list. */
    connect: (id: string, onConnect?: (id: string) => Promise<void>) => Promise<void>;
}
export declare function useConnectorLoader(onLoad: () => Promise<Connector[]>): UseConnectorLoaderReturn;
//# sourceMappingURL=useConnectorLoader.d.ts.map