Laptop-Thing/web/node_modules/fdir/dist/builder/api-builder.d.ts

10 lines
353 B
TypeScript
Raw Normal View History

2024-11-27 12:35:48 -05:00
import { Options, Output, ResultCallback } from "../types";
export declare class APIBuilder<TReturnType extends Output> {
private readonly root;
private readonly options;
constructor(root: string, options: Options);
withPromise(): Promise<TReturnType>;
withCallback(cb: ResultCallback<TReturnType>): void;
sync(): TReturnType;
}