@feast-dev/feast-ui
Version:
Web UI for the [Feast Feature Store](https://feast.dev/)
32 lines • 1.26 kB
TypeScript
type tagTokenType = Record<"key" | "value", string>;
type tagTokenGroupsType = Record<string, string[]>;
type tagAggregationRecordType = Record<string, Record<string, unknown[]>> | undefined;
type SuggestionModes = "KEY" | "VALUE";
interface filterInputInterface {
tagTokenGroups: tagTokenGroupsType;
searchTokens: string[];
}
interface TagSuggestionInstance {
suggestion: string;
description: string;
}
declare const useSearchQuery: () => {
searchString: string;
searchTokens: string[];
setSearchString: (d: string) => void;
};
declare const useTagsWithSuggestions: (tagsAggregationData: tagAggregationRecordType) => {
setCursorPosition: (position: number | undefined) => void;
currentTag: string;
tagsString: string;
setTagsString: (s: string) => void;
tagTokens: tagTokenType[];
tagTokenGroups: Record<string, string[]>;
tagKeysSet: Set<string>;
suggestionMode: SuggestionModes;
tagSuggestions: TagSuggestionInstance[];
acceptSuggestion: (suggestion: TagSuggestionInstance) => void;
};
export { useTagsWithSuggestions, useSearchQuery };
export type { filterInputInterface, tagTokenGroupsType, TagSuggestionInstance, SuggestionModes, };
//# sourceMappingURL=useSearchInputWithTags.d.ts.map