export type PatternMatch = { offset: number; length: number; }; export declare function match(text: string, pattern: RegExp | string | null, ignoreCase?: boolean): boolean; export declare function matchAll(text: string, pattern: RegExp | string | null, onText: (substring: string, last: boolean) => void, onMatch: (substring: string, stopSymbol: symbol) => void | symbol, ignoreCase?: boolean): void;