autumn-js
Version:
Autumn JS Library
28 lines (25 loc) • 963 B
TypeScript
import { AttachParams } from '../client/types/clientAttachTypes.js';
import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.js';
import { a as CheckResult } from '../genTypes-BouhbtKm.js';
import { A as AutumnError } from '../error-DHbclCVh.js';
import { c as Entity } from '../cusTypes-B1wzqLIi.js';
import { GetEntityParams } from '../client/types/clientEntTypes.js';
import 'zod/v4';
import '../prodTypes-C4aZSZfO.js';
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
entity: Entity | null;
isLoading: boolean;
error: AutumnError | undefined | null;
refetch: () => void;
check: (params: CheckParams) => {
data: CheckResult;
error: null;
} | {
data: null;
error: AutumnError;
};
attach: (params: AttachParams) => void;
cancel: (params: CancelParams) => void;
track: (params: TrackParams) => void;
};
export { useEntity };