import type { DomainEntity } from 'domain-objects'; import type { DeclastructDao } from '../../domain.objects/DeclastructDao'; import type { DeclastructProvider } from '../../domain.objects/DeclastructProvider'; /** * .what = gets the DAO and provider context for a given resource from available providers * .why = enables automatic routing of operations to the correct provider with proper context * .note = fails fast if multiple providers support same resource or if no provider is found */ export declare const getDaoByResource: ({ resource, providers, }: { resource: DomainEntity; providers: DeclastructProvider[]; }) => { dao: DeclastructDao; context: any; };