import { type ZodType } from '@frontmcp/lazy-zod'; /** * Parse list request input and validate method. * Common pattern used in tools/list, resources/list, etc. * * @param rawInput - Raw input from the flow * @param schema - Zod schema for the input * @param expectedMethod - Expected MCP method (e.g., 'tools/list', 'resources/list') * @returns Parsed params including cursor */ export declare function parseListInput(rawInput: unknown, schema: T, expectedMethod: string): { cursor?: string; params: Record; }; /** * Entry with owner information for conflict resolution */ export interface OwnedEntry { ownerName: string; entry: T; } /** * Resolved entry with final name after conflict resolution */ export interface ResolvedEntry extends OwnedEntry { finalName: string; } /** * Resolve name conflicts by prefixing with owner name. * Used for tools, resources, prompts, etc. * * @param entries - Array of entries with owner names * @param getBaseName - Function to extract base name from entry * @returns Resolved entries with final names */ export declare function resolveNameConflicts(entries: OwnedEntry[], getBaseName: (entry: T) => string): ResolvedEntry[]; /** * Get a preview of items for logging (first N items). * * @param items - Array of items * @param getName - Function to extract display name from item * @param n - Number of items to preview (default: 5) * @returns Formatted preview string */ export declare function previewItems(items: T[], getName: (item: T) => string, n?: number): string; /** * Get the count of conflicts from entries. * * @param entries - Array of entries * @param getBaseName - Function to extract base name from entry * @returns Object with conflict count and conflict names */ export declare function detectConflicts(entries: T[], getBaseName: (entry: T) => string): { count: number; names: string[]; }; //# sourceMappingURL=flow.utils.d.ts.map