import type { Decoration_Type, TextStyle } from '@wix/ricos/schema';
import type { Decoration } from '../../ricos-schema/next-schema/index.js';
import type { RicosStyles } from '../../ricos-styles/index.js';
import type { ITreeNodeQuery } from '../types.js';
export declare class StylesQuery {
    private styles;
    constructor(styles: RicosStyles);
    /**
     * It returns the decoration of a text block.
     * @param {ITreeNodeQuery} node - ITreeNodeQuery - the node you want to get the decoration from
     * @param {Decoration_Type} decorationType - Decoration_Type
     * @returns A Decoration object
     */
    getTextBlockDecoration(node: ITreeNodeQuery, decorationType: Decoration_Type): Decoration | undefined;
    /**
     * `getTextDecoration` returns the decoration of the given type found in the given node
     * @param {ITreeNodeQuery} node - ITreeNodeQuery - the node you want to get the decoration from
     * @param {Decoration_Type} decorationType - Decoration_Type - The type of decoration you want to
     * get.
     * @returns A Decoration object
     */
    getTextDecoration(node: ITreeNodeQuery, decorationType: Decoration_Type): Decoration | undefined;
    /**
     * It returns the text style of a text block node
     * @param {ITreeNodeQuery} node - ITreeNodeQuery - the node that you want to get the style for
     * @returns A partial of the TextStyle object.
     */
    getTextBlockStyle(node: ITreeNodeQuery): Partial<TextStyle> | undefined;
    /**
     * "return the text style property of the closest text block parent."
     *
     * @param {ITreeNodeQuery} node - ITreeNodeQuery - The node you want to get the style from.
     * @param {string} textStylePropery - The property of the text style you want to get.
     * @returns The computed text style of the node.
     */
    getComputedTextStyle(node: ITreeNodeQuery, textStylePropery: string): Partial<TextStyle> | undefined;
    /**
     * If the node is a text node, get the decoration for that node. If the node is not a text node, get
     * the decoration for the closest text block parent
     * @param {ITreeNodeQuery} node - ITreeNodeQuery - The node you want to get the decoration for.
     * @param {Decoration_Type} decorationType - Decoration_Type
     * @returns The computed decoration for the node.
     */
    getComputedDecoration(node: ITreeNodeQuery, decorationType: Decoration_Type): Decoration | undefined;
}
//# sourceMappingURL=style-query.d.ts.map