/*** * Setup sdk-web testing environment with default values */ export declare const clearSegmentsPresetsMocks: () => void; /** * Configuration of a single segment. * * The segment is identified by ID. The configuration may include a set of variables. */ declare interface FilterSegment { id: string; variables?: FilterSegmentVariableDefinition[]; } /** @ignore */ declare interface FilterSegmentVariableDefinition { name: string; values: string[]; } /*** * Setup sdk-web for testing purposes * The sdk-web implementation will be overridden with passed mocked values or defaults mocks * @param setup - configuration with mocked values / function */ export declare const mockSegmentsPresets: (setup?: MockType) => void; declare type MockType = Partial; /** * Preset containing a configuration of one or more segments. * * The preset is identified by ID that's not stable in the long term. * It means, consumers can't rely on it to identify presets created during previous sessions. */ declare interface SegmentsPreset { id: string; segments: FilterSegment[]; } declare type SegmentVariablesError = { code: number; message: string; }; declare type SegmentVariablesResponse = { accessible: true; variables: SegmentVariablesResult; } | { accessible: boolean; error: SegmentVariablesError; }; declare type SegmentVariablesResult = Record[]; export declare const setupTestingEnv: () => void; /** * Collection of user segments presets. * * It contains recently used and pinned segments presets. */ declare interface UserSegmentsPresets { recentPresets: SegmentsPreset[]; pinnedPresets: SegmentsPreset[]; } declare const wrapper: { getSegmentsPresets: () => Promise; addRecentSegmentsPreset: (segments: FilterSegment[]) => Promise; getSegmentVariables: (segmentId: string) => Promise; pinSegmentsPreset: (segments: FilterSegment[]) => Promise; unpinSegmentsPreset: (id: string) => Promise; reorderPinnedSegmentsPreset: (id: string, index: number) => Promise; }; export { }