//#region src/yamlStringify.d.ts type YamlStringifyOptions = { maxLineLength?: number; showUndefined?: boolean; /** * Max nesting depth from the YAML root for objects/arrays. For `Error` * values, each `cause` hop uses the depth of that `Error` in the tree (the * depth at which the instance is visited, then +1 per nested `Error` * `cause`). Payload fields skip YAML truncation; only `cause` may become * `{max depth reached}`. */ maxDepth?: number; collapseObjects?: boolean; addRootObjSpaces?: 'before' | 'after' | 'beforeAndAfter' | false; /** When serializing `Error`, include `stack`. Default true (direct `yamlStringify`); `compactSnapshot` passes false by default. */ includeErrorStack?: boolean; /** When serializing `Error`, include `cause` recursively. Default true. */ includeErrorCause?: boolean; /** * Limit which extra enumerable own keys appear on `Error` (not `message` / * `name` / `stack` / `cause`). Omit to include all extras. Array = allowlist. */ pickErrorOwnProps?: string[] | ((key: string, value: unknown) => boolean); }; declare function yamlStringify(obj: unknown, { maxLineLength, showUndefined, maxDepth, collapseObjects, addRootObjSpaces, includeErrorStack, includeErrorCause, pickErrorOwnProps }?: YamlStringifyOptions): string; //#endregion export { YamlStringifyOptions, yamlStringify };