/** * @param {Partial<{ * filecoin: Partial * piece: Partial * aggregate: Partial * deal: Partial * assert: Partial * }>} impl */ export function mockService(impl: Partial<{ filecoin: Partial; piece: Partial; aggregate: Partial; deal: Partial; assert: Partial; }>): { filecoin: { offer: { (input: Server.API.Invocation<{ can: "filecoin/offer"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ content: Server.API.Link; piece: import("../../src/types.js").PieceLink; }, "piece" | "content"> & Partial; piece: import("../../src/types.js").PieceLink; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; submit: { (input: Server.API.Invocation<{ can: "filecoin/submit"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ content: Server.API.Link; piece: import("../../src/types.js").PieceLink; }, "piece" | "content"> & Partial; piece: import("../../src/types.js").PieceLink; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; accept: { (input: Server.API.Invocation<{ can: "filecoin/accept"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ content: Server.API.Link; piece: import("../../src/types.js").PieceLink; }, "piece" | "content"> & Partial; piece: import("../../src/types.js").PieceLink; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; info: { (input: Server.API.Invocation<{ can: "filecoin/info"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ piece: import("../../src/types.js").PieceLink; }, "piece"> & Partial>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; }; piece: { offer: { (input: Server.API.Invocation<{ can: "piece/offer"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ piece: import("../../src/types.js").PieceLink; group: string; }, "piece" | "group"> & Partial>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; accept: { (input: Server.API.Invocation<{ can: "piece/accept"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ piece: import("../../src/types.js").PieceLink; group: string; }, "piece" | "group"> & Partial>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; }; aggregate: { offer: { (input: Server.API.Invocation<{ can: "aggregate/offer"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ aggregate: import("../../src/types.js").PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces"> & Partial; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; accept: { (input: Server.API.Invocation<{ can: "aggregate/accept"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ aggregate: import("../../src/types.js").PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces"> & Partial; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; }; deal: { info: { (input: Server.API.Invocation<{ can: "deal/info"; with: `did:${string}:${string}` & `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ piece: import("../../src/types.js").PieceLink; }, "piece"> & Partial>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; }; assert: { equals: { (input: Server.API.Invocation<{ can: "assert/equals"; with: `did:${string}` & Server.API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ content: Server.API.Link | Server.Schema.InferStruct<{ digest: Server.Schema.Schema; }>; equals: Server.API.Link; }, "content" | "equals"> & Partial | Server.Schema.InferStruct<{ digest: Server.Schema.Schema; }>; equals: Server.API.Link; }, never>>; }>, context: Server.InvocationContext): any; /** @type {any[]} */ _params: any[]; called: boolean; callCount: number; }; }; }; import * as Server from '@ucanto/server'; //# sourceMappingURL=mocks.d.ts.map