import { user } from '@synnaxlabs/client';
import { z } from 'zod';
import { Flux } from '../flux';
import { RetrieveParams } from '../flux/retrieve';
import { Ontology } from '../ontology';
export type UseDeleteArgs = user.Key | user.Key[];
export interface FluxStore extends Flux.UnaryStore<user.Key, user.User> {
}
export declare const FLUX_STORE_KEY = "users";
export declare const FLUX_STORE_CONFIG: Flux.UnaryStoreConfig<FluxSubStore, user.Key, user.User>;
export 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 useDelete: Flux.UseUpdate<UseDeleteArgs, UseDeleteArgs, z.ZodNever>;
export interface RetrieveQuery {
    key: user.Key;
}
export declare const retrieveSingle: ({ client, query, store, }: RetrieveParams<RetrieveQuery, FluxSubStore>) => Promise<user.User>;
export interface ChangeUsernameParams extends Pick<user.User, "key" | "username"> {
}
export declare const useRename: Flux.UseUpdate<ChangeUsernameParams, ChangeUsernameParams, z.ZodNever>;
export interface UseRetrieveGroupArgs {
}
export declare const useRetrieveGroupID: Flux.UseRetrieve<UseRetrieveGroupArgs, {
    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>;
    username: z.ZodString;
    password: z.ZodString;
    firstName: z.ZodString;
    lastName: z.ZodString;
}, z.core.$strip>;
export interface UseFormParams {
    key?: user.Key;
}
export declare const useForm: Flux.UseForm<UseFormParams, z.ZodObject<{
    key: z.ZodOptional<z.ZodUUID>;
    username: z.ZodString;
    password: z.ZodString;
    firstName: z.ZodString;
    lastName: z.ZodString;
}, z.core.$strip>, FluxSubStore>;
//# sourceMappingURL=queries.d.ts.map