import type { ApiClient } from "@promobase/sdk-runtime"; import { Cursor } from "@promobase/sdk-runtime"; import type { AdRuleEvaluationSpecFields } from "./ad-rule-evaluation-spec.ts"; import type { AdRuleExecutionSpecFields } from "./ad-rule-execution-spec.ts"; import type { AdRuleHistoryFields } from "./ad-rule-history.ts"; import type { AdRuleScheduleSpecFields } from "./ad-rule-schedule-spec.ts"; import type { UserFields } from "./user.ts"; export interface AdRuleFields { account_id: string; created_by: UserFields; created_time: string; disable_error_code: number; evaluation_spec: AdRuleEvaluationSpecFields; execution_spec: AdRuleExecutionSpecFields; id: string; name: string; schedule_spec: AdRuleScheduleSpecFields; status: string; updated_time: string; } export interface AdRuleListHistoryParams { action?: string; hide_no_changes?: boolean; object_id?: string; [key: string]: unknown; } export interface AdRuleUpdateParams { evaluation_spec?: Record; execution_spec?: Record; name?: string; schedule_spec?: Record; status?: string; [key: string]: unknown; } export declare function adRuleNode(client: ApiClient, id: string): { __path: string; __brand: AdRuleFields; get: (opts: { fields: F; params?: Record; }) => Promise>; update: (params: AdRuleUpdateParams) => Promise; delete: () => Promise; createExecute: (params: Record) => Promise>; history: (opts: { fields: F; params?: AdRuleListHistoryParams; }) => Cursor>; createPreview: (params: Record) => Promise; }; //# sourceMappingURL=ad-rule.d.ts.map