import { AppDataSchemaInstanceAccessor, AppDataSchemaInstanceSelector, UpdateAppDataSchemaInstanceRequest, CreateAppDataSchemaInstanceRequest } from '@membranehq/sdk'; export declare function useAppDataSchemaInstance(selector: string | AppDataSchemaInstanceSelector | undefined): { loading: boolean; saving: boolean; error: any; refreshing: boolean; create: (data: CreateAppDataSchemaInstanceRequest) => 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: UpdateAppDataSchemaInstanceRequest, 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; appDataSchemaInstance: { 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; accessor: AppDataSchemaInstanceAccessor | undefined; 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; }>; setup: () => Promise; };