/** * @file /src/utils/nodes/headerFooter/headerFooterCondition.ts * @name HeaderFooterCondition * @description Utility functions for header and footer conditions. */ import { Node as PMNode, ResolvedPos } from "@tiptap/pm/model"; /** * Check if the given position is within a header or footer. * * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. */ export declare const isPosInPageAmendment: (doc: PMNode, $pos: ResolvedPos | number) => boolean; /** * Check if the given position is at the start of a header or footer. * * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @returns {boolean} True if the position is at the start of a header or footer, false otherwise. */ export declare const isPosAtStartOfPageAmendment: (doc: PMNode, $pos: ResolvedPos | number) => boolean; /** * Check if the given position is at the first child of a header or footer. * * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @returns {boolean} True if the position is at the first child of the header or footer, false otherwise. */ export declare const isPosAtFirstChildOfPageAmendment: (doc: PMNode, $pos: ResolvedPos | number) => boolean; /** * Check if the given position is at the end of a header or footer. * * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @returns {boolean} True if the position is at the end of a header or footer, false otherwise. */ export declare const isPosAtEndOfPageAmendment: (doc: PMNode, $pos: ResolvedPos | number) => boolean; /** * Check if the given position is at the last child of a header or footer. * * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @returns {boolean} True if the position is at the last child of the header or footer, false otherwise. */ export declare const isPosAtLastChildOfPageAmendment: (doc: PMNode, $pos: ResolvedPos | number) => boolean; /** * Check if the given position is at the start of the first page's header or footer. * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @param checkExactStart - Whether the position must be at the exact start of the header or footer. * @returns {boolean} True if the position is at the start of the first page's header or footer, false otherwise. */ export declare const isPosMatchingStartOfPageAmendmentCondition: (doc: PMNode, $pos: ResolvedPos | number, checkExactStart: boolean) => boolean; /** * Check if the given position is at the end of the last page's header or footer. * @param doc - The document node. * @param $pos - The resolved position in the document or the absolute position of the node. * @param checkExactEnd - Whether the position must be at the exact end of the header or footer. * @returns {boolean} True if the position is at the end of the last page's header or footer, false otherwise. */ export declare const isPosMatchingEndOfPageAmendmentCondition: (doc: PMNode, $pos: ResolvedPos | number, checkExactEnd: boolean) => boolean; //# sourceMappingURL=headerFooterCondition.d.ts.map