import type { ConstructorOf } from "../core.js"; /** * Retrieves an element from the document and returns it if it is * non-null and has the expected type. Otherwise an error is thrown. * @param document - The document from which to look up the element. * @param id - The ID of the element. * @param Type - The type you expect the element to have. * @returns The requested element, if it has the expected type. * @throws {@linkcode InvalidOperationError} When the document element has an unexpected type. * @throws {@linkcode UnexpectedNilError} When the the document element is `null`. */ export declare const getDocumentElementTypeByIdStrict: (document: Document, id: string, Type: ConstructorOf) => T; /** * Retrieves an element from the document and returns it if it has the * expected type. * @param document - The document from which to look up the element. * @param id - The ID of the element. * @param Type - The type you expect the element to have. * @returns The requested element, if it has the expected type; `null` otherwise. */ export declare const getDocumentElementTypeById: (document: Document, id: string, Type: ConstructorOf) => T | null;