import * as ts from 'ts-morph'; export interface Patch { patchPath: string; moduleSpecifier: string; imports: ts.ImportDeclarationStructure[]; interfaces: InterfacePatch[]; namespaces: NamespacePatch[]; error: (message: string) => Error; } interface InterfacePatch { interfaceName: string; propertyOverrides: InterfacePropertyOverride[]; } interface InterfacePropertyOverride { propertyName: string; declaration?: string; } interface NamespacePatch { namespaceName: string; memberOverrides: NamespaceMemberOverride[]; } interface NamespaceMemberOverride { memberName: string; declaration?: string; } export declare function parsePatch(patch: ts.SourceFile, patchPath: string): Patch; export {};