import { TlEntry, TlErrors, TlFullSchema } from '../types.js'; /** * Mapping of TL primitive types to TS types */ export declare const PRIMITIVE_TO_TS: Record; /** * Generate TypeScript definitions for a given entry * * @param entry Entry to generate definitions for * @param baseNamespace Base TL namespace containing the entries * @param errors Errors information object * @param withFlags Whether to include `flags` field in the type */ export declare function generateTypescriptDefinitionsForTlEntry(entry: TlEntry, params?: { baseNamespace?: string; errors?: TlErrors; withFlags?: boolean; extends?: { ownSchema: TlFullSchema; namespace: string; }; }): string; /** * Generate TypeScript definitions for a given TL schema * * @param schema TL schema to generate definitions for * @returns Tuple containing `[ts, js]` code */ export declare function generateTypescriptDefinitionsForTlSchema(schema: TlFullSchema, params?: { /** Layer of the schema */ layer?: number; /** Namespace of the schema */ namespace?: string; /** Errors information object */ errors?: TlErrors; /** Whether to skip importing _Long */ skipLongImport?: boolean; /** Whether to only generate typings and don't emit any JS helper functions typings */ onlyTypings?: boolean; /** Namespace of another schema that this one extends */ extends?: string; /** Schema that this one extends */ extendsSchema?: TlFullSchema; }): [string, string];