import { ts } from '@servicenow/sdk-build-core'; import type { Project } from '../../project'; import type { IConnector } from '../../connector'; /** * Main entry point for generating script type definitions * Generates glide.*.d.ts and script-includes.*.d.ts files */ export declare function generateScriptDefinitions(project: Project, connector: IConnector): Promise; /** * Cleans up ServiceNow server-side type definitions to make them valid TypeScript. * * This function performs several transformations: * 1. Makes all function arguments optional (except variable declarations) * 2. Quotes properties with dots in their names * 3. Renames reserved words used as parameter names * 4. Removes invalid 'static' from constructors * 5. Adds type aliases for Java types * 6. Extracts Tables interface into separate file * * @param definitions - Raw type definitions from ServiceNow * @returns Cleaned TypeScript definitions and extracted Tables interface */ export declare function cleanTypeDefinitions(definitions: string): { serverDTs: string; tablesInterface?: string; }; export declare function createScriptIncludeTypeDefinitions(project: Project, connector: IConnector): Promise<{ standardDeclaration: string; moduleDeclaration: string; augmentedModuleDeclaration: string; } | undefined>; export declare function extractReferencesFromSourceFile(file: ts.SourceFile, scriptIncludeRegistry: Record, scope: string): string[];