import { type Entity } from '@graphprotocol/hypergraph'; import type * as Schema from 'effect/Schema'; type EntityIdGraphqlFilter = { is: string; } | { in: readonly string[]; }; type RelationSomeFilter = { typeId: { is: string; }; toEntityId?: EntityIdGraphqlFilter; }; type BacklinkSomeFilter = { typeId: { is: string; }; fromEntityId?: EntityIdGraphqlFilter; }; type GraphqlFilterEntry = { values: { some: { propertyId: { is: string; }; text: { is: string; } | { startsWith: string; } | { endsWith: string; } | { includes: string; }; } | { propertyId: { is: string; }; boolean: { is: boolean; }; } | { propertyId: { is: string; }; float: { is: number; } | { greaterThan: number; } | { lessThan: number; }; }; }; } | { not: GraphqlFilterEntry; } | { or: GraphqlFilterEntry[]; } | { and: GraphqlFilterEntry[]; } | { relations: { some: RelationSomeFilter; }; } | { backlinks: { some: BacklinkSomeFilter; }; } | { id: EntityIdGraphqlFilter; } | { [k: string]: never; }; /** * Translates internal filter format to GraphQL filter format * Maps the internal EntityFieldFilter structure to the expected GraphQL filter structure */ export declare function translateFilterToGraphql(filter: { [K in keyof Schema.Schema.Type]?: Entity.EntityFieldFilter[K]>; } | undefined, type: S): GraphqlFilterEntry; export {}; //# sourceMappingURL=translate-filter-to-graphql.d.ts.map