import { device } from '@synnaxlabs/client'; import { record } from '@synnaxlabs/x'; import { z } from 'zod'; import { Flux } from '../flux'; export declare const useSetSynchronizer: (onSet: (device: Omit) => void) => void; export type RetrieveQuery = device.RetrieveSingleParams; export declare const createRetrieve: = z.ZodType, Make extends z.ZodType = z.ZodString, Model extends z.ZodType = z.ZodString>(schemas?: device.DeviceSchemas) => Flux.CreateRetrieveReturn<{ key: string; includeStatus?: boolean | undefined; }, device.Device>; export declare const use: Flux.Use<{ key: string; includeStatus?: boolean | undefined; }, device.Device>, z.ZodString, z.ZodString>>, useResult: Flux.UseResult<{ key: string; includeStatus?: boolean | undefined; }, device.Device>, z.ZodString, z.ZodString>>, createResultSelector: Flux.CreateResultSelector<{ key: string; includeStatus?: boolean | undefined; }, device.Device>, z.ZodString, z.ZodString>>; /** Compared by variant and message: a heartbeat that changes neither is silenced. */ export declare const useResultStatus: Flux.UseResult<{ key: string; includeStatus?: boolean | undefined; }, { key: string; name: string; variant: "success" | "error" | "info" | "warning" | "loading" | "disabled"; message: string; description: string; time: import('@synnaxlabs/x').TimeStamp; details: { rack: number; device: string; }; labels?: { key: string; name: string; color: [number, number, number, number]; }[] | undefined; } | undefined>; export declare const useResultRack: Flux.UseResult<{ key: string; includeStatus?: boolean | undefined; }, number>; export type ListParams = device.RetrieveMultipleParams; export declare const useList: Flux.UseList<{ keys?: string[] | undefined; names?: string[] | undefined; makes?: string[] | undefined; models?: string[] | undefined; locations?: string[] | undefined; racks?: number[] | undefined; searchTerm?: string | undefined; limit?: number | undefined; offset?: number | undefined; includeStatus?: boolean | undefined; includeParent?: boolean | undefined; }, string, device.Device>, z.ZodString, z.ZodString>>; export type UseDeleteParams = device.Key | device.Key[]; export declare const useDelete: Flux.UseUpdate; export declare const createCreate: = z.ZodType, Make extends z.ZodType = z.ZodString, Model extends z.ZodType = z.ZodString>(schemas?: device.DeviceSchemas) => Flux.CreateUpdateReturn, device.Device, z.ZodNever>; export declare const useCreate: Flux.UseUpdate>, z.ZodString, z.ZodString>, device.Device>, z.ZodString, z.ZodString>, z.ZodNever>; export type UseRetrieveGroupParams = Record; export declare const useGroupID: Flux.Use; export interface RenameParams extends Pick { } export declare const useRename: Flux.UseUpdate; export declare const formSchema: z.ZodObject<{ key: z.ZodString; rack: z.ZodUInt32; location: z.ZodString; make: z.ZodString; model: z.ZodString; name: z.ZodString; configured: z.ZodDefault; properties: z.ZodType> | z.ZodDefault, z.ZodUnknown>>; status: z.ZodOptional, z.ZodEnum<{ error: "error"; success: "success"; info: "info"; warning: "warning"; loading: "loading"; disabled: "disabled"; }>>>; parent: z.ZodOptional; key: z.ZodString; }, z.core.$strip>, z.ZodPipe>]>>; }, z.core.$strip>; export type FormQuery = RetrieveQuery; export declare const createForm: = z.ZodType, Make extends z.ZodType = z.ZodString, Model extends z.ZodType = z.ZodString>(schemas?: device.DeviceSchemas) => Flux.UseForm<{ key: string; includeStatus?: boolean | undefined; }, z.ZodObject<{ key: z.ZodString; rack: z.ZodUInt32; location: z.ZodString; make: z.ZodString; model: z.ZodString; name: z.ZodString; configured: z.ZodDefault; properties: z.ZodType> | z.ZodDefault, z.ZodUnknown>>; status: z.ZodOptional, z.ZodEnum<{ error: "error"; success: "success"; info: "info"; warning: "warning"; loading: "loading"; disabled: "disabled"; }>>>; parent: z.ZodOptional; key: z.ZodString; }, z.core.$strip>, z.ZodPipe>]>>; }, z.core.$strip>>; export declare const useForm: Flux.UseForm<{ key: string; includeStatus?: boolean | undefined; }, z.ZodObject<{ key: z.ZodString; rack: z.ZodUInt32; location: z.ZodString; make: z.ZodString; model: z.ZodString; name: z.ZodString; configured: z.ZodDefault; properties: z.ZodType> | z.ZodDefault, z.ZodUnknown>>; status: z.ZodOptional, z.ZodEnum<{ error: "error"; success: "success"; info: "info"; warning: "warning"; loading: "loading"; disabled: "disabled"; }>>>; parent: z.ZodOptional; key: z.ZodString; }, z.core.$strip>, z.ZodPipe>]>>; }, z.core.$strip>>; //# sourceMappingURL=queries.d.ts.map