interface QueryFacts { ideaStates: readonly string[]; activeStates: readonly string[]; queryStates: ReadonlySet; } export interface IdeaQueryInput { all?: unknown; createdBefore?: unknown; createdSince?: unknown; limit?: unknown; query?: unknown; sort?: unknown; states?: unknown; } export interface NormalizedIdeaQuery { states: string[]; query: string | null; createdSince: string | null; createdBefore: string | null; sort: "newest" | "oldest"; limit: number | null; } export interface IdeaInventoryItem { id: string; state: string; createdAt: string; alias?: string; title?: string; } interface IdeaInventorySource { id: string; state: string; alias?: string; } /** @pure */ export declare function normalizeIdeaQueryCore(input: IdeaQueryInput | undefined, facts: QueryFacts): NormalizedIdeaQuery; /** @pure */ export declare function ideaCreatedAt(id: unknown): string; /** @pure */ export declare function extractIdeaTitle(source: string): string | undefined; /** @pure */ export declare function ideaInventoryItem(idea: IdeaInventorySource, title?: string): IdeaInventoryItem; /** @pure */ export declare function queryIdeaInventoryCore(items: IdeaInventoryItem[], input: IdeaQueryInput, facts: QueryFacts): { query: NormalizedIdeaQuery; summary: { matched: number; returned: number; truncated: boolean; counts: Record; }; ideas: IdeaInventoryItem[]; }; export {}; //# sourceMappingURL=rules.d.ts.map