import { CorsOptions, PollOptions, RequestOptions } from '../types/ICommon'; export declare const ASYNC_STATUS: { readonly IDLE: "IDLE"; readonly PENDING: "PENDING"; readonly SUCCESS: "SUCCESS"; readonly ERROR: "ERROR"; }; /** * Format a CORS response */ export declare function cors(data: any, statusCodeOrOptions?: number | CorsOptions): { body: string; headers: { "Access-Control-Expose-Headers"?: string | undefined; "Access-Control-Allow-Origin": string; "Access-Control-Allow-Credentials": boolean; "Access-Control-Allow-Methods": string; "Access-Control-Allow-Headers": string; }; statusCode: number; }; /** * * @param condition * @param options */ export declare function poll(condition: () => boolean, options?: PollOptions): Promise; /** * Make async requests */ export declare function request(url: string, options?: RequestOptions): Promise; /** * Block execution */ export declare function sleep(seconds?: number): Promise;