UNPKG

cloudhospital.react.sdk

Version:
19 lines (18 loc) 1.12 kB
import { RestException } from '@models/exceptions'; import { SWRConfiguration } from 'swr'; import { SWRMutationConfiguration } from 'swr/mutation'; import { CommunicationUserTokenModel } from 'ch-api-client-typescript2/lib/models/communication-user-token-model'; export declare const getCommunicationUserSWR: (operationName: string | undefined, payload: undefined, shouldFetch?: boolean, config?: SWRConfiguration<CommunicationUserTokenModel, RestException>) => { data: CommunicationUserTokenModel | undefined; error: RestException | undefined; mutate: import("swr/_internal").KeyedMutator<CommunicationUserTokenModel>; isValidating: boolean; isLoading: boolean; }; export declare const getCommunicationUserSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<CommunicationUserTokenModel, RestException, undefined, string>) => { data: CommunicationUserTokenModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithoutArgs<CommunicationUserTokenModel, RestException, any, never>; reset: () => void; isMutating: boolean; };