import type { ElementNode, NabiDoc } from '../schema/index.js'; import { type EditEnv } from '../doc/index.js'; import { type ArmedState, type Selection } from '../caret/index.js'; import type { Registry, Wing } from '../wing/index.js'; export interface PressEnv { readonly doc: NabiDoc; readonly sel: Selection; readonly env: EditEnv; readonly registry: Registry; readonly armed?: ArmedState; } export interface Pressed { readonly on: boolean; readonly value?: string; } export declare function hasToken(value: string | undefined, token: string): boolean; export declare function ownedAncestors(doc: NabiDoc, path: readonly number[], wing: Wing, registry: Registry): readonly ElementNode[]; export declare function ownedAncestor(doc: NabiDoc, path: readonly number[], wing: Wing, registry: Registry): ElementNode | null; export declare function stackValue(candidates: readonly ElementNode[], wing: Wing): string | undefined; export declare function aimNode(candidates: readonly ElementNode[], wing: Wing): ElementNode | null; export declare function pressedOf(env: PressEnv, w: string): Pressed; export declare function pressedValue(env: PressEnv, w: string, value: string | number): boolean; export declare function controlValueOf(node: ElementNode, stack: string | undefined, attr?: string): string | undefined; export declare function markNode(w: string): ElementNode; //# sourceMappingURL=press.d.ts.map