import type { FunctionDeclaration } from '@ai-services/ai/types'; import type { StoreConfig, Action, ThunkArgs } from '../../utils/store-types'; import type { AiServiceOption, AiModelOption } from '../types'; export declare enum ActionType { Unknown = "REDUX_UNKNOWN", SetActiveFunctionDeclaration = "SET_ACTIVE_FUNCTION_DECLARATION" } type UnknownAction = Action; type SetActiveFunctionDeclarationAction = Action; export type CombinedAction = UnknownAction | SetActiveFunctionDeclarationAction; export type State = { activeFunctionDeclaration: string | null; }; export type ActionCreators = typeof actions; export type Selectors = typeof selectors; type DispatcherArgs = ThunkArgs; declare const actions: { /** * Sets the service. * * @since 0.4.0 * * @param service - Service identifier. * @returns Action creator. */ setService(service: string): ({ registry, dispatch, select }: DispatcherArgs) => void; /** * Sets the model. * * @since 0.4.0 * * @param model - Model identifier. * @returns Action creator. */ setModel(model: string): ({ registry }: DispatcherArgs) => void; /** * Sets a model configuration parameter. * * @since 0.4.0 * * @param key - Parameter key. * @param value - Parameter value. * @returns Action creator. */ setModelParam(key: string, value: unknown): ({ registry }: DispatcherArgs) => void; /** * Sets the system instruction. * * @since 0.4.0 * * @param systemInstruction - System instruction. * @returns Action creator. */ setSystemInstruction(systemInstruction: string): ({ registry }: DispatcherArgs) => void; /** * Shows the system instruction. * * @since 0.4.0 * * @returns Action creator. */ showSystemInstruction(): ({ registry }: DispatcherArgs) => void; /** * Hides the system instruction. * * @since 0.4.0 * * @returns Action creator. */ hideSystemInstruction(): ({ registry }: DispatcherArgs) => void; /** * Adds or updates a function declaration. * * If a function with the given name is already present, it will be updated. Otherwise a new function with the name * will be added. This ensures that every function declaration is unique by name. * * @since 0.5.0 * * @param name - Unique function name. * @param description - Function description. * @param parameters - Function parameters as JSON schema. It must be of type 'object'. * @param existingName - Name of an existing function to replace, if this is an update and the name differs. * @returns Action creator. */ setFunctionDeclaration(name: string, description: string, parameters: Record, existingName: string): ({ registry }: DispatcherArgs) => void; /** * Deletes a function declaration. * * Deletion is irreversible. * * @since 0.5.0 * * @param name - Unique function name of the function declaration to delete. * @returns Action creator. */ deleteFunctionDeclaration(name: string): ({ registry }: DispatcherArgs) => void; /** * Toggles whether a specific function declaration is selected. * * @since 0.5.0 * * @param name - Function declaration name. * @returns Action creator. */ toggleSelectedFunctionDeclaration(name: string): ({ registry }: DispatcherArgs) => void; /** * Sets the active function declaration (currently being edited in the modal). * * @since 0.5.0 * * @param name - Active function name being edited, or empty string to clear. * @returns Action creator. */ setActiveFunctionDeclaration(name: string): ({ dispatch }: DispatcherArgs) => void; }; declare const selectors: { getService: { (): string | false; isRegistrySelector?: boolean; registry?: any; }; getModel: { (): string | false; isRegistrySelector?: boolean; registry?: any; }; getServiceName: { (): string | false; isRegistrySelector?: boolean; registry?: any; }; getModelName: { (): string | false; isRegistrySelector?: boolean; registry?: any; }; getModelParam: { (_state: State, key: string): unknown; isRegistrySelector?: boolean; registry?: any; }; getAvailableServices: { (): AiServiceOption[] | undefined; isRegistrySelector?: boolean; registry?: any; }; getAvailableModels: { (): AiModelOption[] | undefined; isRegistrySelector?: boolean; registry?: any; }; getSystemInstruction: { (): string; isRegistrySelector?: boolean; registry?: any; }; isSystemInstructionVisible: { (): boolean; isRegistrySelector?: boolean; registry?: any; }; getFunctionDeclarations: { (): FunctionDeclaration[]; isRegistrySelector?: boolean; registry?: any; }; getSelectedFunctionDeclarations: { (): string[]; isRegistrySelector?: boolean; registry?: any; }; getActiveFunctionDeclaration: (state: State) => string | null; }; declare const storeConfig: StoreConfig; export default storeConfig; //# sourceMappingURL=service-model.d.ts.map