import type { AnyOperationSpec } from '@contractspec/lib.contracts-spec';
import type { OpRef } from '@contractspec/lib.contracts-spec/features';
export interface UseContractsRegistryReturn {
    /** Resolve an OpRef to its full OperationSpec. */
    resolveOperation: (ref: OpRef) => AnyOperationSpec | undefined;
    /** Resolve an operation by key and optional version. */
    getOperationSpec: (key: string, version?: string) => AnyOperationSpec | undefined;
    /** List all registered operation specs. */
    listOperations: () => AnyOperationSpec[];
}
/**
 * Hook to access the ContractSpec contracts registry.
 * Provides resolution of OpRef/EventRef/PresentationRef to their full specs.
 */
export declare function useContractsRegistry(): UseContractsRegistryReturn;
