import { Document } from "@oozcitak/dom/lib/dom/interfaces";
import { DOMParser } from "@oozcitak/dom";
/**
 * Throws an error if the parser returned an error document.
 */
export declare function throwIfParserError(doc: Document): void;
/**
 * Creates an XML document without any child nodes.
 */
export declare function createDocument(): Document;
/**
 * Creates a DOM parser.
 */
export declare function createParser(): DOMParser;
export declare function sanitizeInput(str: string, replacement?: string | ((char: string, offset: number, str: string) => string)): string;
export declare function sanitizeInput(str: string | null, replacement?: string | ((char: string, offset: number, str: string) => string)): string | null;
export declare function sanitizeInput(str: string | null | undefined, replacement?: string | ((char: string, offset: number, str: string) => string)): string | null | undefined;
