kjelsrud.dev/node_modules/sass-formatter/dist/utility.d.ts

17 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
import { SassTextLine } from './sassTextLine';
import { FormattingState } from './state';
/** returns the relative distance that the class or id should be at. */
export declare function getBlockHeaderOffset(distance: number, tabSize: number, current: number, ignoreCurrent: boolean): number;
/**
* adds or removes whitespace based on the given offset, a positive value adds whitespace a negative value removes it.
*/
export declare function replaceWithOffset(text: string, offset: number, STATE: FormattingState): string;
/** returns the difference between the current indentation and the indentation of the given text. */
export declare function getIndentationOffset(text: string, indentation: number, tabSize: number): {
offset: number;
distance: number;
};
export declare function replaceSpacesOrTabs(text: string, STATE: FormattingState, insertSpaces?: boolean): string;
export declare function convertLine(line: SassTextLine, STATE: FormattingState): boolean;
export declare function isKeyframePointAndSetIndentation(line: SassTextLine, STATE: FormattingState): boolean;