import { StringStream } from "./stringstream"; export declare function readToken(mode: any, stream: StringStream, state: any): any; export declare function copyState(mode: any, state: any): any; export interface Mode { token(stream: StringStream, state: S): string; startState: () => S; copyState?: (state: S) => S; name: string; indent?: (state: S, textAfter: string) => number; }