UNPKG

brazilian-courts-scrappers

Version:

Data scrapper para fazer raspagem de dados de processos judiciais dos portais de tribunais do Brasil.

34 lines (33 loc) 1.73 kB
export declare const REGEX_CNJ_NUMBER: RegExp; export declare const EMAIL_REGEX: RegExp; export type tiposParte = "autor" | "reu" | "testemunha" | "terceiro" | "advogado contrário" | "magistrado" | "perito" | "assistente" | "administrador" | "servidor" | "outros"; export declare enum trtInterfacePolosNames { "ativo" = 0, "passivo" = 1, "outros" = 2 } export type Sistema = "projudiTjba" | "pje1gTjba" | "pje1gTrt5"; type OptionsType = { returnElementSelector: string; documentParent: HTMLObjectElement | HTMLIFrameElement; waitForTextContent: boolean; doc: Document; }; export declare function waitForElement(selector: string, doc: Document, { returnElementSelector, documentParent, waitForTextContent, }?: Partial<OptionsType>): Promise<HTMLElement | null>; export declare function stripBlankLines(str: string): string; export declare function stripScriptTagsFromHtmlString(htmlString: string): string; type Replace = { expressionToSearch: RegExp | string; replacingText: string; }; export declare function getTextContent(innerHtml: string, doc: Document, replaces?: Replace[]): string; export declare function extendedTrim(str: string, trimmableCharacters: string[]): string; type ElementSearcherParams = { parentElement: HTMLElement; firstGuessQuerySelector: string; IterableElementsQuerySelector: string; partialTextToSearch: string; }; export declare function getValueFollowingCellSearchedByTextContent(searcherParams: ElementSearcherParams): string; export declare function getElementFollowingCellSearchedByTextContent({ parentElement, firstGuessQuerySelector, IterableElementsQuerySelector, partialTextToSearch, }: ElementSearcherParams): HTMLElement; export {};