import { ontology, project, Synnax } from '@synnaxlabs/client'; import { record } from '@synnaxlabs/x'; import { default as z } from 'zod'; import { Flux } from '../flux'; export type RetrieveQuery = { key: project.Key; }; export declare const use: Flux.Use; export type ListParams = Pick; export declare const useList: Flux.UseList; export type DeleteParams = project.Key | project.Key[]; export declare const useDelete: Flux.UseUpdate; export interface RenameParams { key: project.Key; name: string; } export declare const useRename: Flux.UseUpdate; export type RetrieveGroupQuery = Record; export declare const useGroupID: Flux.Use; export declare const formSchema: z.ZodObject<{ key: z.ZodOptional>; name: z.ZodString; layout: z.ZodDefault, z.ZodUnknown>>; }, z.core.$strip>; export declare const useForm: Flux.UseForm>; name: z.ZodString; layout: z.ZodDefault, z.ZodUnknown>>; }, z.core.$strip>>; export interface SaveLayoutParams extends project.SetLayoutParams { } export declare const useSaveLayout: Flux.UseUpdate; export type RetrieveChildrenQuery = { resourceID?: ontology.ID; types: ontology.ResourceType[]; }; export interface Child extends record.KeyedNamed { type: ontology.ResourceType; } /** * Retrieves the sibling resources sharing the queried resource's project, excluding the * resource itself. Returns an empty list when the resource has no project ancestor. */ export declare const retrieveChildren: (client: Synnax, { resourceID, types }: RetrieveChildrenQuery) => Promise; //# sourceMappingURL=queries.d.ts.map