summaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/compose/resolve-props.d.ts
blob: e324d0c8d8e324bea524293135657b12b11f928d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type { SourceToken, Token } from '../parse/cst.js';
import type { ComposeErrorHandler } from './composer.js';
export interface ResolvePropsArg {
    flow?: 'flow map' | 'flow sequence';
    indicator: 'doc-start' | 'explicit-key-ind' | 'map-value-ind' | 'seq-item-ind';
    next: Token | null | undefined;
    offset: number;
    onError: ComposeErrorHandler;
    startOnNewline: boolean;
}
export declare function resolveProps(tokens: SourceToken[], { flow, indicator, next, offset, onError, startOnNewline }: ResolvePropsArg): {
    comma: SourceToken | null;
    found: SourceToken | null;
    spaceBefore: boolean;
    comment: string;
    hasNewline: boolean;
    anchor: SourceToken | null;
    tag: SourceToken | null;
    end: number;
    start: number;
};