UNPKG

cloudhospital.react.sdk

Version:
28 lines (27 loc) 1.68 kB
import { RestException } from '@models/exceptions'; import { ContributorsApiApiV2ContributorsGetRequest } from 'ch-api-client-typescript2/lib/api/contributors-api'; import { ContributorsModel } from 'ch-api-client-typescript2/lib/models/contributors-model'; import { SWRConfiguration } from 'swr'; import { SWRMutationConfiguration } from 'swr/mutation'; export declare const getContributorsSWR: (operationName: string | undefined, payload: ContributorsApiApiV2ContributorsGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<ContributorsModel, RestException>) => { data: ContributorsModel | undefined; error: RestException | undefined; mutate: import("swr/_internal").KeyedMutator<ContributorsModel>; isValidating: boolean; isLoading: boolean; }; export declare const getContributorsSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<ContributorsModel, RestException, undefined, string>) => { data: ContributorsModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithArgs<ContributorsModel, RestException, any, ContributorsApiApiV2ContributorsGetRequest>; reset: () => void; isMutating: boolean; }; export declare const getContributorsSWRInfinite: (operationName: string | undefined, payload: ContributorsApiApiV2ContributorsGetRequest, shouldFetch?: boolean) => { data: ContributorsModel | undefined; isValidating: boolean; isLoading: boolean; error: RestException | undefined; setSize: (size: number | ((_size: number) => number)) => Promise<ContributorsModel[] | undefined>; mutate: import("swr/_internal").KeyedMutator<ContributorsModel[]>; };