import type { CrudAPI, dndevSchema, Entity } from '@donotdev/core';
interface UseCrudSafeOptions<T> {
    schema?: dndevSchema<T>;
    entity?: Entity;
    staleTime?: number;
    noCache?: boolean;
}
/**
 * Safe wrapper for useCrud hook.
 *
 * - If @donotdev/crud installed → uses real hook (handles Firebase/consent internally)
 * - If not installed → returns degraded API values
 *
 * @param entityOrCollection - Entity definition or collection name
 * @param options - Options including backend type and schema
 * @returns CRUD operations and state, or degraded API if crud unavailable
 *
 * @example
 * ```typescript
 * // With entity
 * const { add, update } = useCrudSafe(carEntity);
 *
 * // With collection string
 * const { get, set } = useCrudSafe('users', { schema: UserSchema });
 * ```
 */
export declare function useCrudSafe<T = unknown>(entityOrCollection: Entity | string, options?: UseCrudSafeOptions<T>): CrudAPI<T>;
/**
 * Check if CRUD module is available (for conditional UI rendering)
 */
export declare const isCrudAvailable: boolean;
export {};
//# sourceMappingURL=useCrudSafe.d.ts.map