import { ErrorLike, OutputWithStatus } from '@platforma-sdk/model'; import { OptionalResult } from './types'; import { ZodError } from 'zod'; export declare class UnresolvedError extends Error { name: string; } export declare class MultiError extends Error { readonly errors: (ErrorLike | string)[]; name: string; readonly fullMessage: string; constructor(errors: (ErrorLike | string)[]); } export declare function unwrapOutput(output?: OutputWithStatus): V; export declare function ensureOutputHasStableFlag(output?: OutputWithStatus): { ok: false; errors: ErrorLike[]; moreErrors: boolean; } | { ok: true; value: T; stable: boolean; }; export declare function wrapOptionalResult(value: V): OptionalResult; export declare function isDefined(v: T | undefined): v is T; export declare const identity: (v: T) => V; export declare const ensureError: (cause: unknown) => Error; export declare const isZodError: (err: Error) => err is ZodError; export declare const formatZodError: (err: ZodError) => string; //# sourceMappingURL=utils.d.ts.map