/** * Calculates the offset top of a DOM element relative to a target element. * @param dom The DOM element for which to calculate the offset top. * @param target The target element relative to which the offset top is calculated. Defaults to document.body. * @returns The offset top of the DOM element. */ export declare const getOffsetTop: (dom: HTMLElement, target?: HTMLElement) => number; /** * Calculates the offset left of a given DOM element relative to a target element. * @param dom - The DOM element for which to calculate the offset left. * @param target - The target element relative to which the offset left is calculated. Defaults to `document.body`. * @returns The offset left of the DOM element relative to the target element. */ export declare const getOffsetLeft: (dom: HTMLElement, target?: HTMLElement) => number; /** * Converts a string to a slug by removing diacritics, special characters, * and ensuring it follows slug conventions. * * @param str - The string to be converted to a slug. * @returns The slugified string. */ export declare const slugify: (str: string) => string; /** * Determines the media type based on the file extension. * @param name - The name of the file. * @returns The media type of the file. */ export declare const getMediaType: (name?: string, alt?: string) => "document" | "image" | "other" | "audio" | "video" | "markdown" | "attachment"; /** * Retrieves the bounding rectangle of the current selection. * @returns The bounding rectangle of the selection, or null if no selection exists. */ export declare const getSelRect: () => DOMRect | null;