laravel-precognition
Version:
Laravel Precognition.
18 lines (17 loc) • 530 B
TypeScript
import { Client, RequestMethod } from './types.js';
/**
* The precognitive HTTP client instance.
*/
export declare const client: Client;
/**
* Determine if the value is a file.
*/
export declare const isFile: (value: unknown) => boolean;
/**
* Resolve the url from a potential callback.
*/
export declare const resolveUrl: (url: string | (() => string)) => string;
/**
* Resolve the method from a potential callback.
*/
export declare const resolveMethod: (method: RequestMethod | (() => RequestMethod)) => RequestMethod;