/** * @param {API.UploadServiceContext} context */ export function createService(context: API.UploadServiceContext): { add: API.ServiceMethod<{ can: "upload/add"; with: `did:key:${string}` & `did:${string}` & API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ root: API.Link; shards: API.Link, number, 1>[] | undefined; }, "root"> & Partial; shards: API.Link, number, 1>[] | undefined; }, "shards">>; }, API.UploadAddSuccess, API.Failure>; get: API.ServiceMethod<{ can: "upload/get"; with: `did:key:${string}` & `did:${string}` & API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ root: API.Link | undefined; }, never> & Partial | undefined; }, "root">>; }, API.UploadListItem, API.UploadGetFailure>; list: API.ServiceMethod<{ can: "upload/list"; with: `did:key:${string}` & `did:${string}` & API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ cursor: string | undefined; size: (number & API.Phantom<{ typeof: "integer"; }>) | undefined; pre: boolean | undefined; }, never> & Partial) | undefined; pre: boolean | undefined; }, "size" | "cursor" | "pre">>; }, API.UploadListSuccess, API.Failure>; remove: API.ServiceMethod<{ can: "upload/remove"; with: `did:key:${string}` & `did:${string}` & API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ root: API.Link; }, "root"> & Partial; }, never>>; }, API.UploadAddSuccess, API.Failure>; shard: { list: API.ServiceMethod<{ can: "upload/shard/list"; with: `did:key:${string}` & `did:${string}` & API.Phantom<{ protocol: "did:"; }> & `${string}:${string}`; nb: Pick<{ root: API.Link; cursor: string | undefined; size: (number & API.Phantom<{ typeof: "integer"; }>) | undefined; }, "root"> & Partial; cursor: string | undefined; size: (number & API.Phantom<{ typeof: "integer"; }>) | undefined; }, "size" | "cursor">>; }, API.UploadShardListSuccess, API.UploadShardListFailure>; }; }; import * as API from './types.js'; //# sourceMappingURL=upload.d.ts.map