/** * JSON.stringify with recursively sorted object keys, so semantically equal * objects compare equal regardless of key insertion order (local YAML order * vs. API response order). */ export declare function stableStringify(value: unknown): string; /** * Remote-controlled values (slugs, identifiers, names, URL basenames) become * local filenames; strip anything that could escape the target directory or * produce an unusable name, falling back to a known-safe stem (typically the * resource id). */ export declare function sanitizeFilenameStem(stem: string | null | undefined, fallback: string): string; /** Markdown links must use forward slashes even when generated on Windows. */ export declare function toPosixPath(p: string): string; /** Human-readable message for a caught unknown. */ export declare function errorMessage(error: unknown): string;