//#region src/runtime/actions.d.ts interface ServerActionResponse { success: boolean; result?: any; error?: string; redirect?: string; } interface ServerActionOptions { onSuccess?: (result: any) => void; onError?: (error: string) => void; onRedirect?: (url: string) => void; } declare function createServerReference(functionName: string, moduleId: string, exportName: string): (...args: any[]) => Promise; declare function enhanceFormWithAction(form: HTMLFormElement, action: (formData: FormData) => Promise, options?: ServerActionOptions): () => void; declare function createFormAction(moduleId: string, exportName: string, action: (formData: FormData) => Promise): { action: string; enhance: (form: HTMLFormElement, options?: ServerActionOptions) => () => void; }; declare function bindServerActions(): void; //#endregion export { ServerActionOptions, ServerActionResponse, bindServerActions, createFormAction, createServerReference, enhanceFormWithAction };