import { workspace } from '@synnaxlabs/client';
import { default as z } from 'zod';
import { Flux } from '../flux';
import { Ontology } from '../ontology';
export declare const FLUX_STORE_KEY = "workspaces";
export interface FluxStore extends Flux.UnaryStore<workspace.Key, workspace.Workspace> {
}
interface FluxSubStore extends Flux.Store {
    [FLUX_STORE_KEY]: FluxStore;
    [Ontology.RELATIONSHIPS_FLUX_STORE_KEY]: Ontology.RelationshipFluxStore;
    [Ontology.RESOURCES_FLUX_STORE_KEY]: Ontology.ResourceFluxStore;
}
export declare const FLUX_STORE_CONFIG: Flux.UnaryStoreConfig<FluxSubStore>;
export interface RetrieveQuery {
    key: workspace.Key;
}
export declare const useRetrieve: Flux.UseRetrieve<RetrieveQuery, workspace.Workspace>;
export interface ListParams {
    offset?: number;
    limit?: number;
}
export declare const useList: Flux.UseList<ListParams, string, workspace.Workspace>;
export type DeleteParams = workspace.Key | workspace.Key[];
export declare const useDelete: Flux.UseUpdate<DeleteParams, DeleteParams, z.ZodNever>;
export interface RenameParams {
    key: workspace.Key;
    name: string;
}
export declare const useRename: Flux.UseUpdate<RenameParams, RenameParams, z.ZodNever>;
export interface RetrieveGroupQuery {
}
export declare const useRetrieveGroupID: Flux.UseRetrieve<RetrieveGroupQuery, {
    type: "status" | "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table" | "arc" | "schematic_symbol";
    key: string;
} | {
    type: "node" | "label" | "table" | "range" | "group" | "log" | "status" | "cluster" | "schematic" | "channel" | "workspace" | "user" | "task" | "device" | "rack" | "arc" | "allow_all" | "builtin" | "framer" | "range-alias" | "lineplot" | "policy" | "schematic_symbol";
    key: string;
} | undefined>;
export declare const formSchema: z.ZodObject<{
    key: z.ZodOptional<z.ZodUUID>;
    name: z.ZodString;
    layout: z.ZodUnion<[z.ZodRecord<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodPipe<z.ZodString, z.ZodTransform<import('node_modules/@synnaxlabs/x/dist/src/record/record').Unknown, string>>]>;
}, z.core.$strip>;
export declare const useForm: Flux.UseForm<Partial<RetrieveQuery>, z.ZodObject<{
    key: z.ZodOptional<z.ZodUUID>;
    name: z.ZodString;
    layout: z.ZodUnion<[z.ZodRecord<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodPipe<z.ZodString, z.ZodTransform<import('node_modules/@synnaxlabs/x/dist/src/record/record').Unknown, string>>]>;
}, z.core.$strip>, FluxSubStore>;
export interface SaveLayoutParams extends workspace.SetLayoutArgs {
}
export declare const useSaveLayout: Flux.UseUpdate<SaveLayoutParams, SaveLayoutParams, z.ZodNever>;
export {};
//# sourceMappingURL=queries.d.ts.map