/** * @param {import('./api.js').ServiceContext} context */ export function createService(context: import('./api.js').ServiceContext): { filecoin: { offer: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinOfferSuccess, any>; submit: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinSubmitSuccess, any>; accept: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinAcceptSuccess, Server.API.Failure & ({} | API.FilecoinAcceptFailure)>; info: Server.ServiceMethod, Pick<{ piece: API.PieceLink; }, "piece">>, API.FilecoinInfoSuccess, any>; }; }; export function filecoinOffer({ capability }: API.Input, Server.Schema.InferStruct<{ content: Server.Schema.Schema, any>; piece: API.PieceLinkSchema; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export function filecoinSubmit({ capability }: API.Input, Server.Schema.InferStruct<{ content: Server.Schema.Schema, any>; piece: API.PieceLinkSchema; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export function filecoinAccept({ capability }: API.Input, Server.Schema.InferStruct<{ content: Server.Schema.Schema, any>; piece: API.PieceLinkSchema; }>>>>, context: import('./api.js').ServiceContext): Promise>; export function filecoinInfo({ capability }: API.Input, Server.Schema.InferStruct<{ piece: API.PieceLinkSchema; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export const ProofNotFoundName: "ProofNotFound"; export class ProofNotFound extends Server.Failure { get reason(): string; get name(): "ProofNotFound"; } export function createServer(context: API.UcantoServerContext & import('./api.js').ServiceContext): Server.ServerView<{ filecoin: { offer: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinOfferSuccess, any>; submit: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinSubmitSuccess, any>; accept: Server.ServiceMethod, Pick<{ content: Server.API.Link; piece: API.PieceLink; }, "piece" | "content">>, API.FilecoinAcceptSuccess, Server.API.Failure & ({} | API.FilecoinAcceptFailure)>; info: Server.ServiceMethod, Pick<{ piece: API.PieceLink; }, "piece">>, API.FilecoinInfoSuccess, any>; }; }>; export function connect({ id, channel, codec }: { id: API.UcantoInterface.Principal; channel: API.UcantoInterface.Transport.Channel; codec?: Server.OutboundCodec | undefined; }): Server.ConnectionView; import * as Server from '@ucanto/server'; import * as API from '../types.js'; //# sourceMappingURL=service.d.ts.map