1 | import * as src from './api';
|
2 | export type SerializedSourceSlice<Chars extends string = string> = [
|
3 | chars: Chars,
|
4 | span: src.SerializedSourceSpan
|
5 | ];
|
6 | export declare class SourceSlice<Chars extends string = string> {
|
7 | static synthetic<S extends string>(chars: S): SourceSlice<S>;
|
8 | static load(source: src.Source, slice: SerializedSourceSlice): SourceSlice;
|
9 | readonly chars: Chars;
|
10 | readonly loc: src.SourceSpan;
|
11 | constructor(options: {
|
12 | loc: src.SourceSpan;
|
13 | chars: Chars;
|
14 | });
|
15 | getString(): string;
|
16 | serialize(): SerializedSourceSlice<Chars>;
|
17 | }
|