export declare const MISSING_PROVIDER_CODE = "ERR_NO_PROVIDER"; export declare const AMBIGUOUS_PROVIDER_CODE = "ERR_AMBIGUOUS_PROVIDER"; export declare const PROVIDER_QUEUE_FULL_CODE = "ERR_PROVIDER_QUEUE_FULL"; export declare const MODULE_CONTEXT_INVALIDATED_CODE = "ERR_MODULE_CONTEXT_INVALIDATED"; /** * Error emitted when a proxy is used without an attached provider in test * stub mode. * * The detection contract is the type and the stable `code` property, not the * message text: use `instanceof MissingProviderError` or, across duplicated * copies of this package, {@link isMissingProviderError}. */ export declare class MissingProviderError extends Error { readonly code = "ERR_NO_PROVIDER"; constructor(detail?: string); } /** Error emitted when a call cannot be routed between multiple providers. */ export declare class AmbiguousProviderError extends Error { readonly code = "ERR_AMBIGUOUS_PROVIDER"; constructor(proxyIdentity: string, providers: string[]); } /** Error emitted when an unattached proxy's bounded queue is full. */ export declare class ProviderQueueFullError extends Error { readonly code = "ERR_PROVIDER_QUEUE_FULL"; constructor(proxyIdentity: string, limit: number); } /** * Error emitted when work inherited ownership from a destroyed module. */ export declare class ModuleContextInvalidatedError extends Error { readonly code = "ERR_MODULE_CONTEXT_INVALIDATED"; constructor(module: string); } /** * Type guard for {@link MissingProviderError}. * * Checks the stable `code` property instead of `instanceof`, so detection * survives realm boundaries and duplicated copies of this package. */ export declare function isMissingProviderError(error: unknown): error is MissingProviderError;