cloudhospital.react.sdk
Version:
### Build local package
34 lines (33 loc) • 2.09 kB
TypeScript
import { RestException } from '@models/exceptions';
import { AboutUsApiApiV2AboutusHospitalIdGetRequest, AboutUsApiApiV2AboutusSlugGetRequest } from 'ch-api-client-typescript2/lib/api/about-us-api';
import { AboutUsPageModel } from 'ch-api-client-typescript2/lib/models/about-us-page-model';
import { SWRConfiguration } from 'swr';
import { SWRMutationConfiguration } from 'swr/mutation';
export declare const getAboutusPageByIdSWR: (operationName: string | undefined, payload: AboutUsApiApiV2AboutusHospitalIdGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<AboutUsPageModel, RestException>) => {
data: AboutUsPageModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<AboutUsPageModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getAboutusPageByIdSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<AboutUsPageModel, RestException, undefined, string>) => {
data: AboutUsPageModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<AboutUsPageModel, RestException, any, AboutUsApiApiV2AboutusHospitalIdGetRequest>;
reset: () => void;
isMutating: boolean;
};
export declare const getAboutusPageBySlugSWR: (operationName: string | undefined, payload: AboutUsApiApiV2AboutusSlugGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<AboutUsPageModel, RestException>) => {
data: AboutUsPageModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<AboutUsPageModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getAboutUsPageBySlugSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<AboutUsPageModel, RestException, undefined, string>) => {
data: AboutUsPageModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<AboutUsPageModel, RestException, any, AboutUsApiApiV2AboutusSlugGetRequest>;
reset: () => void;
isMutating: boolean;
};