UNPKG

syphonx-core

Version:

SyphonX is a template-driven solution for extracting data from HTML in a highly efficient way. It combines the power of jQuery, Regular Expressions, and Javascript into a declarative template-driven format that extracts and reshapes HTML data into JSON.

13 lines (12 loc) 729 B
import { Action, ActionType, Select, Transform } from "./public/index.js"; export interface FlatAction { action: Action; level: number; case?: number; } export declare function findAction(actions: Action[], action_type: ActionType): Action[]; export declare function findLastSelectGroup(actions: Action[]): Select[] | undefined; export declare function findSelect(actions: Action[], name: string): Select[]; export declare function flattenTemplateActions(actions: Action[], result?: FlatAction[], level?: number, n?: number): FlatAction[]; export declare function flattenTemplateSelect(actions: Action[], names?: string[]): Select[]; export declare function flattenTemplateTransforms(actions: Action[]): Transform[];