/** * This file is auto-generated, do not edit manually. * * Re-generate with: npm run generate-protocol-resources. */ export type integer = number; export type binary = string; export type EnumerableEnum = { [K in keyof T]: T[K]; }; export interface ProtocolResponseWithError { /** Returns an error message if the request failed. */ getError(): string | undefined; } type OpaqueType = { protocolOpaqueTypeTag: Tag; }; type OpaqueIdentifier = RepresentationType & OpaqueType; export declare namespace Accessibility { /** * Unique accessibility node identifier. */ type AXNodeId = OpaqueIdentifier; /** * Enum of possible property types. */ const enum AXValueType { Boolean = "boolean", Tristate = "tristate", BooleanOrUndefined = "booleanOrUndefined", Idref = "idref", IdrefList = "idrefList", Integer = "integer", Node = "node", NodeList = "nodeList", Number = "number", String = "string", ComputedString = "computedString", Token = "token", TokenList = "tokenList", DomRelation = "domRelation", Role = "role", InternalRole = "internalRole", ValueUndefined = "valueUndefined" } /** * Enum of possible property sources. */ const enum AXValueSourceType { Attribute = "attribute", Implicit = "implicit", Style = "style", Contents = "contents", Placeholder = "placeholder", RelatedElement = "relatedElement" } /** * Enum of possible native property sources (as a subtype of a particular AXValueSourceType). */ const enum AXValueNativeSourceType { Description = "description", Figcaption = "figcaption", Label = "label", Labelfor = "labelfor", Labelwrapped = "labelwrapped", Legend = "legend", Rubyannotation = "rubyannotation", Tablecaption = "tablecaption", Title = "title", Other = "other" } /** * A single source for a computed AX property. */ interface AXValueSource { /** * What type of source this is. */ type: AXValueSourceType; /** * The value of this property source. */ value?: AXValue; /** * The name of the relevant attribute, if any. */ attribute?: string; /** * The value of the relevant attribute, if any. */ attributeValue?: AXValue; /** * Whether this source is superseded by a higher priority source. */ superseded?: boolean; /** * The native markup source for this value, e.g. a `