import { $$safeError } from "./constants.ts"; import type { ExecutionEntryFlags } from "./interfaces.ts"; declare const $$flagged: unique symbol; /** * Wrapper for errors to return (rather than throw or reject) from user code. */ export interface FlaggedValue { [$$flagged]: true; flags: ExecutionEntryFlags; value: TValue; planId: number | null; toString(): string; } export declare const $$inhibit: FlaggedValue; /** * Used to wrap error values to have Grafast treat them as if they were * thrown/rejected (rather than just regular values). */ export declare function flagError(value: TError, planId?: number | null): FlaggedValue; export declare class SafeError | undefined = Record | undefined> extends Error { static $$export: { moduleName: string; exportName: string; }; [$$safeError]: boolean; extensions: TExtensions; constructor(message: string, extensions?: TExtensions, errorOptions?: ErrorOptions); } export declare function isSafeError(error: Error): error is SafeError; export {}; //# sourceMappingURL=error.d.ts.map