import { type PFError } from '@ts-pf/protocol'; export type CallResult = { ok: true; data: T; error?: undefined; } | { ok: false; data?: undefined; error: E; }; export declare function asResult(promise: Promise & { readonly '~pfError'?: E; }): Promise>; //# sourceMappingURL=as-result.d.ts.map