///
import type { BuildQueryURLArgs, Client, Ordering } from "@prismicio/client";
import type { SnippetArgs } from "../../utils";
import type { RequestRunReturnType } from "./types";
type RequestOptions = {
id?: string;
ids?: string[];
type?: string;
uid?: string;
uids?: string[];
tag?: string;
tags?: string[];
signal?: AbortSignal;
} & Partial;
export type RequestConfig = {
type: TType;
Fieldset?: () => JSX.Element;
getSnippetArgs?: (options: Omit & {
filters?: symbol[];
orderings?: {
[K in keyof Ordering]: Ordering[K];
}[];
}) => SnippetArgs;
run: (client: Client, options: RequestOptions) => Promise;
};
/**
* A factory for creating request handlers (fieldset, snippet, runner, erc.) for the API explorer.
*
* @param config - Request configuration.
* @returns A request handler to be referenced in `./types.ts` for the API explorer to use.
*/
export declare function createRequest(config: RequestConfig): RequestConfig;
export {};