import { CreateAppDataSchemaRequest, AppDataSchemaAccessor, UpdateAppDataSchemaRequest } from '@membranehq/sdk'; export declare function useAppDataSchema(selector: string | undefined): { accessor: AppDataSchemaAccessor | undefined; loading: boolean; saving: boolean; error: any; refresh: () => Promise<{ id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; }>; refreshing: boolean; create: (data: CreateAppDataSchemaRequest) => Promise<{ id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined>; patch: (data: Partial, options?: (Omit | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined, { id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined; }) | undefined) => Promise; put: (data: UpdateAppDataSchemaRequest, options?: Omit | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined, { id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined; }) => Promise; archive: () => Promise; appDataSchema: { id: string; name: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; instanceKey?: string | undefined; appDataSchemaId?: string | undefined; schema?: any; code?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; appDataSchemaRevision?: string | undefined; archivedAt?: string | undefined; isCustomized?: boolean | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; userId?: string | undefined; tenantId?: string | undefined; user?: any; appDataSchema?: any; } | undefined; };