import type { PrefetchItem } from 'squared/types'; export function getStyle(element: Element, pseudoElt?: PseudoElt): CSSStyleDeclaration; export function getStyleValue(element: StyleElement, attr: string, defined?: boolean): string; export function getRemSize(fixedWidth?: boolean): number; export function getFontSize(element: Element): number; export function getBoundingElement(element: Element): StyleElement; /** @deprecated findContainerType */ export function findContainer(element: Element, name?: string, ancestors?: WeakMap): ContainerData | null; export function findContainerType(element: Element, conditionText: string, name?: string): ContainerData | null; export function matchContainer(element: StyleElement, value: string, options?: MatchContainerOptions): 0 | 1 | -1; export function checkWritingMode(attr: CssStyleAttr, value?: string): T; export function checkStyleValue(element: StyleElement, attr: string, value: string, percent?: boolean /** @deprecated */): string; export function calculateAll(value: string, options?: CalculateOptions): number; export function calculate(value: string, options?: CalculateOptions): number; export function calculateVar(element: StyleElement, value: string, options?: CalculateVarOptions): number; export function calculateVarAsString(element: StyleElement, value: string, options?: CalculateVarAsStringOptions): string; /** @deprecated boundingBox | percent */ export function calculateStyle(element: StyleElement, attr: string, value: string, boundingBox?: Dimension | null, percent?: boolean): string; /** @deprecated */ export function calculateColor(value: string): string; export function calculateColor(element: StyleElement, value: string): string; export function parseStyleValue(element: StyleElement, attr: CssStyleAttr, value: string, options?: ParseStyleValueOptions): string; export function parseVar(element: StyleElement, value: string): string; export function parseConditional(element: StyleElement, attr: CssStyleAttr, value: string): string; export function parseEnv(element: StyleElement, value: string): string; export function parseAttrType(element: StyleElement, attr: CssStyleAttr, value: string): string; export function splitStyleValue(value: string, char?: string): string; export function asUnitOf(value: number): string; export function detectUnit(value: string, options?: CalculateOptions): [number, number]; export function calculateUnit(value: string, options?: CalculateOptions): number; export function measureText(element: StyleElement, value: string, options?: MeasureTextOptions): TextMetrics | null; /** @deprecated measureText.width */ export function measureTextWidth(element: StyleElement, value: string, options?: MeasureTextOptions): number; export function isMonospacedFont(value: string): boolean; export function parseUnit(value: string, options?: ParseUnitOptions): number; export function convertUnit(value: number | string, unit?: string, options?: ConvertUnitOptions): string; export function parseAngle(value: string, fallback?: number): number; export function convertAngle(value: string, unit?: string, fallback?: number): number; export function parseTime(value: string, fallback?: number): number; export function parseResolution(value: string, fallback?: number): number; /** @deprecated roundPx */ export function formatPX(value: number): string; export function formatPercent(value: number | string, round?: boolean): string; export function isLength(value: string, percent?: boolean, strict?: boolean): boolean; export function isCalc(value: string): boolean; /** @deprecated */ export function isCustomProperty(value: string): boolean; export function isAngle(value: string): boolean; export function isTime(value: string): boolean; export function isResolution(value: string): boolean; export function isAttrType(attr: CssStyleAttr, value: string, options: AttrTypeOptions): boolean; export function isAttrType(attr: CssStyleAttr, value: string, element: StyleElement): boolean; export function isAttrType(attr: CssStyleAttr, value: string, type?: string): boolean; export function isFullViewport(value: string, unit?: "w" | "h"): boolean; /** @deprecated */ export function isInherited(value: string): value is CssStyleAttr; export function asPercent(value: unknown): number; export function isPercent(value: unknown): boolean; export function asPx(value: unknown, equivalent?: boolean): number; export function isPx(value: unknown): boolean; export function roundPx(value: number, range?: number | [number, number?], precision?: number): string; export function isUnit(value: string, unit: string): boolean; export function hasEm(value: string): boolean; export function hasCalc(value: string): boolean; export function hasLength(value: string): boolean; export function hasColor(value: string): boolean; export function hasAngle(value: string): boolean; export function hasTime(value: string): boolean; export function hasCustomProperty(value: string): boolean; export function hasCustomFunction(value: string): boolean; export function hasConditional(value: string): boolean; export function hasEnv(value: string): boolean; export function hasAttrType(value: string): boolean; export function hasCoords(value: string): boolean; export function extractURL(value: string): string | undefined; export function resolveURL(value: string, objectUrl: true): URL | null; export function resolveURL(value: string, base: string | URL | null, objectUrl: true): URL | null; export function resolveURL(value: string, base?: string | URL | null): string | undefined; export function getDataURL(value: string, extract?: boolean): DataURL | undefined; export function prefetch(type: "css", all: boolean, ...targets: DocumentRoot[]): Promise; export function prefetch(type: "css", ...targets: DocumentRoot[]): Promise; export function prefetch(type: "javascript" | "image" | "svg", all: boolean, ...targets: string[]): Promise; export function prefetch(type: "javascript" | "image" | "svg", ...targets: string[]): Promise; export function prefetch(type: Required["type"], ...targets: [boolean?, ...unknown[]]): Promise;