import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs"; import { ErrorIbGib_V1 } from "../../error/error-types.mjs"; import { Observer, ObserverWitness } from "./observer-types.mjs"; /** * Determines type of incoming `err` and pulls out the error msg accordingly. * * ## note on not using {@link extractErrorMsg} * * {@link extractErrorMsg} is in helper-gib, which despite the name, does not * contain ibgib-specific types. So we can't pass in an ibGib and have it * extract the error msg. * * @returns error msg from incoming err */ export declare function extractObsErrMsg({ err, }: { err: ErrorIbGib_V1 | Error | string; }): string; /** * this is meant to be a wrapper of non-ibgib-like lambdas. * * So you take normal, mostly non-ibgib anonymous lambdas (that do indeed * have ibgib's as their inputs/outputs) and you wrap it here to get an * {@link ObserverWitness} which is an actual witness ibGib. * @param observer with regularish lambdas in a javascript object (not an ibgib) * @returns observer ibgib witness with formal ibgib witness signatures and the other ibgib properties: `ib`, `gib`, `data`, `rel8ns` */ export declare function fnObs(observerOrFn: Observer | ((ibGib: T) => Promise)): ObserverWitness; //# sourceMappingURL=observer-helper.d.mts.map