resolve-props.d.ts 854 B

1234567891011121314151617181920212223
  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. parentIndent: number;
  10. startOnNewline: boolean;
  11. }
  12. export declare function resolveProps(tokens: SourceToken[], { flow, indicator, next, offset, onError, parentIndent, startOnNewline }: ResolvePropsArg): {
  13. comma: SourceToken | null;
  14. found: SourceToken | null;
  15. spaceBefore: boolean;
  16. comment: string;
  17. hasNewline: boolean;
  18. anchor: SourceToken | null;
  19. tag: SourceToken | null;
  20. newlineAfterProp: SourceToken | null;
  21. end: number;
  22. start: number;
  23. };