declare global { var my_prototype_defined: boolean; interface String { /** - type?: `'single'` 引号类型 */ quote_if_space(this: string, type?: keyof typeof quotes | 'psh'): string; to_base64(this: string): string; /** - buffer: `false` 直接返回 Buffer */ decode_base64(this: string): string; decode_base64(this: string, buffer: true): Buffer; decode_base64(this: string, buffer?: boolean): string | Buffer; to_backslash(this: string): string; readonly red: string; readonly red_: string; readonly green: string; readonly green_: string; readonly yellow: string; readonly yellow_: string; readonly blue: string; readonly blue_: string; readonly magenta: string; readonly magenta_: string; readonly cyan: string; readonly cyan_: string; readonly gray: string; readonly underline: string; strip_ansi(this: string): string; } interface Array { log(this: string[], limit?: number): void; indent2to4(this: string[]): string[]; trim_license(this: string[]): string[]; split_indents(this: string[]): { indent: number; text: string; }[]; } } import { quotes } from './prototype.common.ts'; export * from './prototype.common.ts';