resolve-props.d.ts 806 B

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