import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { PublicSchedulePayload } from "./publicschedulepayload.js";
/**
 * Schedule type.
 */
export declare const PublicScheduleType: {
    readonly Cron: "cron";
    readonly Once: "once";
    readonly Interval: "interval";
};
/**
 * Schedule type.
 */
export type PublicScheduleType = ClosedEnum<typeof PublicScheduleType>;
export type PublicSchedule = {
    /**
     * ULID identifying this schedule.
     */
    id: string;
    agentKey: string;
    /**
     * Pinned agent version. Omit to always run the agent's current active version.
     */
    agentTag?: string | undefined;
    created: Date;
    /**
     * ID of the API key that created the schedule.
     */
    createdById: string;
    /**
     * Cron expression (6-field, seconds required), @every duration, @at RFC3339 timestamp, or a predefined descriptor like @hourly/@daily.
     */
    expression: string;
    /**
     * Monotonic counter bumped when the schedule's firing cadence changes. Used by the consumer to skip stale in-flight triggers.
     */
    generation: number;
    /**
     * Whether the schedule is currently firing. once schedules flip to false automatically after firing.
     */
    isActive: boolean;
    /**
     * Timestamp of the most recent firing, if any.
     */
    lastTriggeredAt?: Date | undefined;
    payload: PublicSchedulePayload;
    /**
     * Total firings since creation or last expression/type change.
     */
    triggerCount: number;
    /**
     * Schedule type.
     */
    type: PublicScheduleType;
    updated: Date;
    workspaceId: string;
};
/** @internal */
export declare const PublicScheduleType$inboundSchema: z.ZodNativeEnum<typeof PublicScheduleType>;
/** @internal */
export declare const PublicSchedule$inboundSchema: z.ZodType<PublicSchedule, z.ZodTypeDef, unknown>;
export declare function publicScheduleFromJSON(jsonString: string): SafeParseResult<PublicSchedule, SDKValidationError>;
//# sourceMappingURL=publicschedule.d.ts.map