import { IProperty } from './interfaces'; /** * Given some valid, well linted Typescript source code, extracts exported interfaces and enums. * * Note: requires that the closing '}' of interfaces and enums is the first char on its own line. * It should otherwise be reasonably robust to handle various commenting or even code layout * styles within the interface or enum. * * To specify default values for interfaces, use the JSDoc @default or @defaultvalue or TSDoc @defaultValue markup. * The rest of the line after @default will be captured as the default value. * * @param source - Valid, reasonably well linted Typescript source code. * @param propsInterfaceOrEnumName - Name of an interface or enum if you only want to parse said interface or enum. * @returns An array of properties. */ export declare function parse(source: string, propsInterfaceOrEnumName?: string): IProperty[];