/** * Shared scalar utility functions for document-api adapters. */ /** * Returns the value as a string if it is a non-empty string, otherwise `undefined`. * * @param value - The value to test. */ export declare function toNonEmptyString(value: unknown): string | undefined; /** * Coerces a value to a finite number. Accepts numbers and numeric strings. * * @param value - The value to coerce. * @returns A finite number, or `undefined` if the value cannot be coerced. */ export declare function toFiniteNumber(value: unknown): number | undefined; /** * Coerces a value to a stable ID string. Accepts non-empty strings and finite numbers. * * @param value - The value to coerce. * @returns A string ID, or `undefined` if the value is not a valid identifier. */ export declare function toId(value: unknown): string | undefined; /** * Extracts a comment ID from node attributes, checking `commentId`, `importedId`, and `w:id` in order. * * @param attrs - The attributes record to search. * @returns The first non-empty comment ID found, or `undefined`. */ export declare function resolveCommentIdFromAttrs(attrs: Record): string | undefined; /** * Normalizes whitespace in a text excerpt and returns `undefined` for empty results. * * @param text - The raw text to normalize. * @returns Trimmed text with collapsed whitespace, or `undefined` if empty. */ export declare function normalizeExcerpt(text: string): string | undefined; //# sourceMappingURL=value-utils.d.ts.map