UNPKG

1.09 kBTypeScriptView Raw
1import { SassTextLine } from './sassTextLine';
2import { FormattingState } from './state';
3/** returns the relative distance that the class or id should be at. */
4export declare function getBlockHeaderOffset(distance: number, tabSize: number, current: number, ignoreCurrent: boolean): number;
5/**
6 * adds or removes whitespace based on the given offset, a positive value adds whitespace a negative value removes it.
7 */
8export declare function replaceWithOffset(text: string, offset: number, STATE: FormattingState): string;
9/** returns the difference between the current indentation and the indentation of the given text. */
10export declare function getIndentationOffset(text: string, indentation: number, tabSize: number): {
11 offset: number;
12 distance: number;
13};
14export declare function replaceSpacesOrTabs(text: string, STATE: FormattingState, insertSpaces?: boolean): string;
15export declare function convertLine(line: SassTextLine, STATE: FormattingState): boolean;
16export declare function isKeyframePointAndSetIndentation(line: SassTextLine, STATE: FormattingState): boolean;