import { ApiCommand, ApiCommandSelectedResType, ApiClient } from '../type'; import { SWRResponse, SWRConfiguration, Fetcher } from 'swr'; export declare function createSwrHooks>(appClient: Client): { useSwrApi: SWRApiHook; useSwrApiAll: SWRApiAllHook; }; interface SWRApiHook { (command: Command): SWRResponse; , Data extends ApiCommandSelectedResType, Error = any>(command: Command): SWRResponse; , Error = any, SWROptions extends SWRConfiguration> | undefined = SWRConfiguration> | undefined>(command: Command, config: SWROptions): SWRResponse; , Data extends ApiCommandSelectedResType, Error = any, SWROptions extends SWRConfiguration> | undefined = SWRConfiguration> | undefined>(command: Command, config: SWROptions): SWRResponse; } interface SWRApiAllHook { (commands: Commands): SWRResponse; , Commands extends [Command, ...Command[]] | { [key: string]: Command; } | Command[], Data extends { [P in keyof Commands]: ApiCommandSelectedResType; }, Error = any>(commands: Commands): SWRResponse; , Commands extends null | undefined, Data extends { [P in keyof Commands]: ApiCommandSelectedResType; }, Error = any, SWROptions extends SWRConfiguration> | undefined = SWRConfiguration> | undefined>(commands: Commands, config: SWROptions): SWRResponse; , Commands extends [Command, ...Command[]] | { [key: string]: Command; } | Command[], Data extends { [P in keyof Commands]: ApiCommandSelectedResType; }, Error = any, SWROptions extends SWRConfiguration> | undefined = SWRConfiguration> | undefined>(commands: Commands, config: SWROptions): SWRResponse; } export {};