epubavocado
Version:
I am an EPUB object model aspiring to be standards compliant.
16 lines (15 loc) • 664 B
TypeScript
import type { SelectedValue } from 'xpath';
import { Maybe } from '../../util.js';
import { Constructor } from './constructor.js';
export declare type EntityConstructor = Constructor<Entity>;
export declare class Entity {
_node: Node;
_context: Entity;
constructor(node: Node, context?: Entity);
_select(expression: string): Maybe<SelectedValue>;
_selectAll(expression: string): SelectedValue[];
_resolve(expression: string): Maybe<string>;
_resolve<T>(expression: string, constructor: Constructor<T>): Maybe<T>;
_resolveAll(expression: string): string[];
_resolveAll<T>(expression: string, constructor: Constructor<T>): T[];
}