1 | export interface IDataReader<T = any> {
|
2 | basename: string;
|
3 | read: (file: string) => T | void;
|
4 | }
|
5 | export interface IClosestDataResult {
|
6 | readonly path: string;
|
7 | readonly data: any;
|
8 | }
|
9 | declare function closestFileData(relPath: string, oneOrMoreReader: IDataReader | IDataReader[]): IClosestDataResult | void;
|
10 | declare const _default: typeof closestFileData & {
|
11 | cache: {
|
12 | clear: () => any;
|
13 | };
|
14 | };
|
15 | export default _default;
|