eslint-mdx
Version:
ESLint Parser for MDX
19 lines (18 loc) • 845 B
TypeScript
import type { Position } from 'acorn';
import type { Point } from 'unist';
import type { CjsRequire, NormalPosition } from './types.js';
export declare const arrayify: <T, R = T extends Array<infer S> ? S : T>(...args: T[]) => R[];
export declare const getPhysicalFilename: (filename: string, child?: string) => string;
export declare const getPositionAtFactory: (code: string) => (offset: number) => Position;
export declare const normalizePosition: ({ start, end, code, }: {
start: Point | {
offset: number;
};
end: Point | {
offset: number;
};
code?: string;
}) => NormalPosition;
export declare const prevCharOffsetFactory: (code: string) => (offset: number) => number;
export declare const nextCharOffsetFactory: (text: string) => (offset: number) => number;
export declare const cjsRequire: CjsRequire;