mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:49:29 +08:00
19 lines
600 B
Text
19 lines
600 B
Text
declare type Input = string;
|
|
declare type Output = Array<string | number>;
|
|
declare const lex: (input: Input) => Output;
|
|
|
|
declare type IDENTIFIER = string | number;
|
|
declare type OBJECT = {
|
|
[key in IDENTIFIER]: VALUE;
|
|
};
|
|
declare type ARRAY = VALUE[];
|
|
declare type VALUE = OBJECT | ARRAY | string | boolean | number | null | undefined;
|
|
declare const parse: (input: ReturnType<typeof lex>) => OBJECT;
|
|
|
|
declare class FenceparserError extends Error {
|
|
constructor(message: string);
|
|
}
|
|
|
|
declare const _default: (input: string) => OBJECT;
|
|
|
|
export { FenceparserError, _default as default, lex, parse };
|