export interface PasteThresholds { readonly lines?: number; readonly chars?: number; } export declare function countLines(text: string): number; export declare function isLargePaste(text: string, thresholds?: PasteThresholds): boolean; export declare function pastePreviewLines(text: string, maxLines?: number): string[]; export declare function pasteChipLabel(lines: number, chars: number): string; export interface PastePlaceholderEntry { readonly id: number; readonly token: string; readonly text: string; readonly lines: number; readonly chars: number; readonly label: string; } export declare function samePastePlaceholderEntries(a: readonly PastePlaceholderEntry[], b: readonly PastePlaceholderEntry[]): boolean; export declare class PasteRegistry { private readonly entries; private nextId; register(text: string): PastePlaceholderEntry; resolve(id: number): PastePlaceholderEntry | undefined; activeIn(value: string): PastePlaceholderEntry[]; clear(): void; expand(value: string): string; expandOne(value: string, id: number): string; }