/** * @import { AgentMessageFetch } from '@storacha/router/types' * @import { AssertLocation } from '@web3-storage/content-claims/capability/api' */ export const AwaitErrorName: "AwaitError"; /** * @implements {API.AwaitError} */ export class AwaitError extends Failure implements API.AwaitError { /** * @param {object} source * @param {string} source.at - argument path that referenced failed `await` * @param {import('@ucanto/interface').UnknownLink} source.reference - awaited reference that failed * @param {import('@ucanto/interface').Failure} source.cause - error that caused referenced `await` to fail */ constructor({ at, reference, cause }: { at: string; reference: import("@ucanto/interface").UnknownLink; cause: import("@ucanto/interface").Failure; }); at: string; reference: ed25519.Signer.UnknownLink; cause: ed25519.Failure; /** * @type {'AwaitError'} */ get name(): "AwaitError"; } export class BlobNotFound extends Failure { static name: "BlobNotFound"; /** @param {import('multiformats').MultihashDigest} digest */ constructor(digest: import("multiformats").MultihashDigest); get name(): "BlobNotFound"; get digest(): Uint8Array; #private; } export class EntryNotFound extends Failure { static name: "EntryNotFound"; /** * @param {string} [message] * @param {ErrorOptions} [options] */ constructor(message?: string, options?: ErrorOptions); get name(): "EntryNotFound"; #private; } export class EntryExists extends Failure { static name: "EntryExists"; /** * @param {string} [message] * @param {ErrorOptions} [options] */ constructor(message?: string, options?: ErrorOptions); get name(): "EntryExists"; #private; } export class AllocatedMemoryNotWrittenError extends Failure { static name: "AllocatedMemoryHadNotBeenWrittenTo"; get name(): "AllocatedMemoryHadNotBeenWrittenTo"; } export class BlobSizeLimitExceededError extends Failure { static name: "BlobSizeOutsideOfSupportedRange"; /** * @param {number} size * @param {number} max */ constructor(size: number, max: number); get name(): "BlobSizeOutsideOfSupportedRange"; size: number; max: number; } export function deriveDID(multihash: API.Multihash): Promise; export function isHttpPutTask(i: API.Invocation): i is API.Invocation; export function toLocationCommitment(root: API.Link, blocks: Iterable): API.Delegation<[AssertLocation]>; export function fetchWithTimeout(timeout: number): API.BlobAPI.AgentMessageFetch; export function findTask(fxs: Iterable, capability: API.TheCapabilityParser>): API.Invocation> | null; import * as API from '../types.js'; import { Failure } from '@ucanto/server'; import { ed25519 } from '@ucanto/principal'; import type { AssertLocation } from '@web3-storage/content-claims/capability/api'; //# sourceMappingURL=lib.d.ts.map