Files
memecoin-botV2/.pnpm-store/v10/files/05/b4edbd4bf3c65d076cd4a86a24ba4472d8aad9dfb6ea2957bed6d923568f5a033788bf9b0862f1de344a9b279114ecd2dc922dddebad15959300cb6023c200

17 lines
1009 B
Plaintext

import { SyntaxKind } from "#enums/syntaxKind";
import type { __String, SourceFile } from "./ast.ts";
export declare function formatSyntaxKind(kind: SyntaxKind): string;
/**
* Remove one extra leading underscore from an identifier name, recovering the
* display form from its escaped {@link __String} key.
*/
export declare function unescapeLeadingUnderscores(identifier: __String): string;
/**
* Add an extra leading underscore to a display name that already begins with
* `__`, producing its escaped {@link __String} key.
*/
export declare function escapeLeadingUnderscores(identifier: string): __String;
export declare function tryCast<TOut extends TIn, TIn = any>(value: TIn | undefined, test: (value: TIn) => value is TOut): TOut | undefined;
export declare function cast<TOut extends TIn, TIn = any>(value: TIn | undefined, test: (value: TIn) => value is TOut): TOut;
export declare function cloneSourceFileData(sourceFile: SourceFile): Record<string, unknown>;
//# sourceMappingURL=utils.d.ts.map