/** * Filter function type for filtering metadata files. */ export type Filter = (fileName: string) => boolean; /** * MetadataFile type representing a structured metadata file. */ export interface MetadataFile { content: string; filename: string; } /** * Get structured metadata for a specific metadata folder. * Will NOT crawl recursively, but will return all files in the metadata directory. * @param folder - The name of the folder to get metadata for. * @param filter - Optional filter function to apply to the filenames. * If provided, only files that pass the filter will be included in the result. */ export declare const getStructuredMetaData: (folder: string, filter?: Filter) => Promise<({ content: string; filename: string; } | null)[]>; /** * Get structured metadata for a specific component. * Will NOT crawl recursively, but will return all files in the component's metadata directory. * @param componentName - The name of the component to get metadata for. * @param filter - Optional filter function to apply to the filenames. * If provided, only files that pass the filter will be included in the result. */ export declare const getStructuredMetaDataForComponent: (componentName: string, filter?: Filter) => Promise<({ content: string; filename: string; } | null)[]>;