1 | import { IODataParser } from "./parsers.js";
|
2 | import { IFetchOptions, IRequestClient } from "@pnp/common";
|
3 | import { IQueryableData } from "./queryable.js";
|
4 | import { PipelineMethod } from "./pipeline.js";
|
5 | export interface IRequestOptions<T> extends IFetchOptions {
|
6 | parser: IODataParser<T>;
|
7 | }
|
8 | export interface IClientFactoryBinder {
|
9 | (clientFactory: () => IRequestClient): IMethodBinder;
|
10 | }
|
11 | export interface IPipelineBinder {
|
12 | (pipeline: PipelineMethod<any>[]): IClientFactoryBinder;
|
13 | }
|
14 | export interface IMethodBinder {
|
15 | (method: string): IOperation;
|
16 | }
|
17 | export interface IOperation {
|
18 | <ReturnType>(o: Partial<IQueryableData<ReturnType>>): Promise<ReturnType>;
|
19 | }
|
20 | export declare function pipelineBinder(pipes: PipelineMethod<any>[]): IClientFactoryBinder;
|
21 | export declare const defaultPipelineBinder: IClientFactoryBinder;
|
22 |
|
\ | No newline at end of file |