/** * @param {import('./api.js').ServiceContext} context */ export function createService(context: import('./api.js').ServiceContext): { piece: { offer: Server.ServiceMethod, Pick<{ piece: API.PieceLink; group: string; }, "piece" | "group">>, API.PieceOfferSuccess, any>; accept: Server.ServiceMethod, Pick<{ piece: API.PieceLink; group: string; }, "piece" | "group">>, API.PieceAcceptSuccess, any>; }; }; export function pieceOffer({ capability }: API.Input, Server.Schema.InferStruct<{ piece: API.PieceLinkSchema; group: Server.Schema.StringSchema; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export function pieceAccept({ capability }: API.Input, Server.Schema.InferStruct<{ piece: API.PieceLinkSchema; group: Server.Schema.StringSchema; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export function createServer(context: API.UcantoServerContext & import('./api.js').ServiceContext): Server.ServerView<{ piece: { offer: Server.ServiceMethod, Pick<{ piece: API.PieceLink; group: string; }, "piece" | "group">>, API.PieceOfferSuccess, any>; accept: Server.ServiceMethod, Pick<{ piece: API.PieceLink; group: string; }, "piece" | "group">>, API.PieceAcceptSuccess, 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