import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type RetrieveAgentScheduleRequest = {
    /**
     * The unique routing key of the agent the schedule belongs to.
     */
    agentKey: string;
    /**
     * The schedule's ULID, as returned from create.
     */
    scheduleId: string;
};
/**
 * Schedule type.
 */
export declare const RetrieveAgentScheduleType: {
    readonly Cron: "cron";
    readonly Once: "once";
    readonly Interval: "interval";
};
/**
 * Schedule type.
 */
export type RetrieveAgentScheduleType = ClosedEnum<typeof RetrieveAgentScheduleType>;
/**
 * Schedule retrieved.
 */
export type RetrieveAgentScheduleResponseBody = {
    /**
     * 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: components.PublicSchedulePayload;
    /**
     * Total firings since creation or last expression/type change.
     */
    triggerCount: number;
    /**
     * Schedule type.
     */
    type: RetrieveAgentScheduleType;
    updated: Date;
    workspaceId: string;
};
/** @internal */
export type RetrieveAgentScheduleRequest$Outbound = {
    agent_key: string;
    schedule_id: string;
};
/** @internal */
export declare const RetrieveAgentScheduleRequest$outboundSchema: z.ZodType<RetrieveAgentScheduleRequest$Outbound, z.ZodTypeDef, RetrieveAgentScheduleRequest>;
export declare function retrieveAgentScheduleRequestToJSON(retrieveAgentScheduleRequest: RetrieveAgentScheduleRequest): string;
/** @internal */
export declare const RetrieveAgentScheduleType$inboundSchema: z.ZodNativeEnum<typeof RetrieveAgentScheduleType>;
/** @internal */
export declare const RetrieveAgentScheduleResponseBody$inboundSchema: z.ZodType<RetrieveAgentScheduleResponseBody, z.ZodTypeDef, unknown>;
export declare function retrieveAgentScheduleResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveAgentScheduleResponseBody, SDKValidationError>;
//# sourceMappingURL=retrieveagentschedule.d.ts.map