import fs from "node:fs"; interface GenerateCustomApiTypesOptions { workspaceRoot: string; cartridgesDir?: string; existsSync?: (filePath: string) => boolean; mkdirSync?: (dirPath: string, options: { recursive: boolean; }) => void; writeFileSync?: (filePath: string, content: string, encoding: BufferEncoding) => void; } interface GenerateCustomApiTypesResult { outputFilePath: string; sourceFiles: string[]; written: boolean; schemasCount: number; operationsCount: number; } declare function generateCustomApiTypes(options: GenerateCustomApiTypesOptions): GenerateCustomApiTypesResult; interface GenerateCustomAttributesTypesResult { outputFilePath: string; sourceFiles: string[]; written: boolean; declarationsCount: number; attributesCount: number; } interface GenerateHookTypesResult { outputFilePath: string; declarationsCount: number; sourceFiles: string[]; written: boolean; } interface GenerateHookTypesOptions { workspaceRoot: string; existsSync?: (filePath: string) => boolean; mkdirSync?: (dirPath: string, options: { recursive: boolean; }) => void; readdirSync?: (directory: string, options: { withFileTypes: true; }) => fs.Dirent[]; readFileSync?: (filePath: string, encoding: BufferEncoding) => string; writeFileSync?: (filePath: string, content: string, encoding: BufferEncoding) => void; } declare function generateHookTypes({ workspaceRoot, existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync }: GenerateHookTypesOptions): GenerateHookTypesResult; interface GenerateJobStepTypesOptions { workspaceRoot: string; cartridgesDir?: string; existsSync?: (filePath: string) => boolean; mkdirSync?: (dirPath: string, options: { recursive: boolean; }) => void; writeFileSync?: (filePath: string, content: string, encoding: BufferEncoding) => void; } interface GenerateJobStepTypesResult { declarationsCount: number; outputFilePath: string; sourceFiles: string[]; written: boolean; } declare function generateJobStepTypes(options: GenerateJobStepTypesOptions): GenerateJobStepTypesResult; type SyncTypesOutputStyle = "dim" | "green" | "yellow"; type SyncTypesColorize = (style: SyncTypesOutputStyle, text: string) => string; interface SpawnResultLike { status: number | null; } type SpawnSyncLike = (command: string, args: string[], options: { stdio: "inherit"; shell: boolean; }) => SpawnResultLike; interface SyncTypesCliOptions { currentDirectory?: string; platform?: string; existsSync?: (filePath: string) => boolean; mkdirSync?: (dirPath: string, options: { recursive: boolean; }) => void; readFileSync?: (filePath: string, encoding: BufferEncoding) => string; spawnSync?: SpawnSyncLike; unlinkSync?: (filePath: string) => void; writeFileSync?: (filePath: string, content: string, encoding: BufferEncoding) => void; writeStdout?: (text: string) => void; writeStderr?: (text: string) => void; colorize?: SyncTypesColorize; onResult?: (result: SyncTypesResult) => void; } interface SyncTypesOptions { currentDirectory?: string; platform?: string; force?: boolean; minimumVersion?: string; outputPath?: string; cartridgesDir?: string; siteTemplatePath?: string; configFile?: string | false; existsSync?: (filePath: string) => boolean; mkdirSync?: (dirPath: string, options: { recursive: boolean; }) => void; readFileSync?: (filePath: string, encoding: BufferEncoding) => string; spawnSync?: SpawnSyncLike; unlinkSync?: (filePath: string) => void; writeFileSync?: (filePath: string, content: string, encoding: BufferEncoding) => void; } declare class SyncTypesExecutionError extends Error { readonly exitCode: number; constructor(message: string, exitCode: number); } interface SyncTypesResult { scriptTypes: { refreshed: boolean; version?: string; minimumVersion?: string; }; customAttributes: GenerateCustomAttributesTypesResult; hooks: GenerateHookTypesResult; customApis: GenerateCustomApiTypesResult; jobSteps: GenerateJobStepTypesResult; } declare function syncTypes(options?: SyncTypesOptions): SyncTypesResult; declare function runSyncTypesCli(args: string[], options?: SyncTypesCliOptions): number; declare function main(args?: string[], options?: SyncTypesCliOptions): number; declare function looksLikeSyncTypesCliEntrypoint(filePath: string): boolean; export { looksLikeSyncTypesCliEntrypoint as a, syncTypes as c, generateCustomApiTypes as d, SyncTypesResult as i, generateJobStepTypes as l, SyncTypesExecutionError as n, main as o, SyncTypesOptions as r, runSyncTypesCli as s, SyncTypesCliOptions as t, generateHookTypes as u };