/** * @param {import('./api.js').ServiceContext} context */ export function createService(context: import('./api.js').ServiceContext): { aggregate: { offer: Server.ServiceMethod, Pick<{ aggregate: API.PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces">>, API.AggregateOfferSuccess, any>; accept: Server.ServiceMethod, Pick<{ aggregate: API.PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces">>, API.AggregateAcceptSuccess, Server.API.Failure & ({} | API.AggregateAcceptFailure)>; }; }; export function aggregateOffer({ capability, invocation }: API.Input, Server.Schema.InferStruct<{ aggregate: API.PieceLinkSchema; pieces: Server.Schema.Schema, any>; }>>>>, context: import('./api.js').ServiceContext): Promise | API.UcantoInterface.JoinBuilder>; export function aggregateAccept({ capability }: API.Input, Server.Schema.InferStruct<{ aggregate: API.PieceLinkSchema; pieces: Server.Schema.Schema, any>; }>>>>, context: import('./api.js').ServiceContext): Promise>; export function createServer(context: API.UcantoServerContext & import('./api.js').ServiceContext): Server.ServerView<{ aggregate: { offer: Server.ServiceMethod, Pick<{ aggregate: API.PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces">>, API.AggregateOfferSuccess, any>; accept: Server.ServiceMethod, Pick<{ aggregate: API.PieceLink; pieces: Server.API.Link; }, "aggregate" | "pieces">>, API.AggregateAcceptSuccess, Server.API.Failure & ({} | API.AggregateAcceptFailure)>; }; }>; 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