import type { ContractClient } from '@ts-pf/contract'; import type { CallInterceptor } from './call-interceptor.js'; import type { Link } from './link.js'; import type { CallPlugin } from './plugin.js'; type CreateClientOptions = { interceptors?: readonly CallInterceptor[]; plugins?: readonly CallPlugin[]; }; /** * Typed client over a `Link`. Pass the contract type: * `createClient(link)`. Without it `T` is `never` and the * result is a single `~error` member naming the fix, instead of a silent `{}`. */ export declare function createClient(link: Link, options?: CreateClientOptions): [T] extends [never] ? { readonly '~error': 'Pass createClient(link)'; } : ContractClient; export {}; //# sourceMappingURL=client.d.ts.map