api-builder.d.ts 353 B

123456789
  1. import { Options, Output, ResultCallback } from "../types";
  2. export declare class APIBuilder<TReturnType extends Output> {
  3. private readonly root;
  4. private readonly options;
  5. constructor(root: string, options: Options);
  6. withPromise(): Promise<TReturnType>;
  7. withCallback(cb: ResultCallback<TReturnType>): void;
  8. sync(): TReturnType;
  9. }