import { type WorkItem, type WorkQueue, type WorkStatus, type WorkType } from './schema.ts';
export * from './id.ts';
export * from './inline.ts';
export * from './priority.ts';
export * from './schema.ts';
export * from './store.ts';
interface WorkActionResult<T> {
    data: T;
    envelope: {
        data: T;
        errorCount: 0;
        warningCount: 0;
    };
    exitCode: 0;
}
export interface WorkInitOptions {
    cwd?: string;
}
export declare const workInit: (options?: WorkInitOptions) => WorkActionResult<{
    config: import("./schema.ts").WorkConfig;
    paths: {
        config: string;
        items: string;
        queues: string;
    };
}>;
export interface WorkAddOptions {
    acceptanceCriteria?: readonly string[];
    area?: string;
    confidence?: number;
    cwd?: string;
    description?: string;
    effort?: number;
    file?: string;
    id?: string;
    impact?: number;
    inline?: boolean;
    line?: number;
    now?: Date;
    risk?: number;
    tags?: readonly string[];
    title: string;
    type: WorkType;
    urgency?: number;
    verification?: readonly string[];
}
export declare const workAdd: (options: WorkAddOptions) => WorkActionResult<{
    item: WorkItem;
}>;
export interface WorkListOptions {
    cwd?: string;
    sort?: 'created' | 'priority';
    status?: WorkStatus;
    type?: WorkType;
}
export declare const selectWorkItems: (items: readonly WorkItem[], options: WorkListOptions, formula: string) => WorkItem[];
export declare const workList: (options?: WorkListOptions) => WorkActionResult<{
    items: WorkItem[];
}>;
export interface WorkShowOptions {
    cwd?: string;
    id: string;
}
export declare const workShow: (options: WorkShowOptions) => WorkActionResult<{
    item: WorkItem;
}>;
export interface WorkTriageOptions {
    cwd?: string;
}
export declare const workTriage: (options?: WorkTriageOptions) => WorkActionResult<{
    items: WorkItem[];
}>;
export interface WorkQueueOptions {
    cwd?: string;
    limit?: number;
    name?: string;
    now?: Date;
    status?: WorkStatus;
}
export declare const workQueue: (options?: WorkQueueOptions) => WorkActionResult<{
    queue: WorkQueue;
}>;
export interface WorkNextOptions {
    claim?: boolean;
    cwd?: string;
    name?: string;
    now?: Date;
}
export declare const workNext: (options?: WorkNextOptions) => WorkActionResult<{
    item: WorkItem | undefined;
}>;
export interface WorkClaimOptions {
    cwd?: string;
    id: string;
    now?: Date;
}
export declare const workClaim: (options: WorkClaimOptions) => WorkActionResult<{
    item: WorkItem;
}>;
export interface WorkDoneOptions {
    cwd?: string;
    evidence: string;
    id: string;
    now?: Date;
}
export declare const workDone: (options: WorkDoneOptions) => WorkActionResult<{
    item: WorkItem;
}>;
export interface WorkUpdateOptions {
    acceptanceCriteria?: readonly string[];
    area?: string;
    blockedReason?: string;
    confidence?: number;
    cwd?: string;
    description?: string;
    effort?: number;
    id: string;
    impact?: number;
    now?: Date;
    risk?: number;
    status?: WorkStatus;
    tags?: readonly string[];
    title?: string;
    urgency?: number;
    verification?: readonly string[];
}
export declare const workUpdate: (options: WorkUpdateOptions) => WorkActionResult<{
    item: WorkItem;
}>;
export declare const workStoreExists: (cwd?: string) => boolean;
//# sourceMappingURL=index.d.ts.map