react-native-shiki-engine
Version:
Shiki syntax highlighting for React Native. Zero bridge overhead with native Oniguruma regex engine.
12 lines • 393 B
TypeScript
import type { IOnigMatch } from '@shikijs/vscode-textmate';
interface OnigResult {
readonly index: number;
readonly captureIndices: readonly {
readonly start: number;
readonly end: number;
readonly length: number;
}[];
}
export declare function convertToOnigMatch(result: OnigResult | null): IOnigMatch | null;
export {};
//# sourceMappingURL=utils.d.ts.map