import { type InvalidCodeError, type NetworkError, type Result } from "../../types/error"; import type { TSurvey } from "../../types/survey"; /** * Triggers the display of a survey if it meets the display percentage criteria * @param survey - The survey configuration to potentially display */ export declare const triggerSurvey: (survey: TSurvey) => void; /** * Tracks an action name and triggers associated surveys * @param name - The name of the action to track * @param alias - Optional alias for the action name * @returns Result indicating success or network error */ export declare const trackAction: (name: string, alias?: string) => Promise>; /** * Tracks an action by its code and triggers associated surveys (used for code actions only) * @param code - The action code to track * @returns Result indicating success, network error, or invalid code error */ export declare const track: (code: string) => Promise | Result | Result>; //# sourceMappingURL=action.d.ts.map