import * as z from "zod/v3";
import { OpenEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { JournalLine } from "./journalline.js";
export type AccountingJournal4 = {};
export type AccountingJournalSourceValue = string | number | boolean | AccountingJournal4 | Array<any>;
/**
 * The journal status
 */
export declare enum AccountingJournalValue {
    Draft = "draft",
    Posted = "posted",
    Void = "void",
    UnmappedValue = "unmapped_value"
}
/**
 * The journal status
 */
export type AccountingJournalValueOpen = OpenEnum<typeof AccountingJournalValue>;
/**
 * Status of the journal
 */
export type Status = {
    sourceValue?: string | number | boolean | AccountingJournal4 | Array<any> | null | undefined;
    /**
     * The journal status
     */
    value?: AccountingJournalValueOpen | null | undefined;
};
export type AccountingJournal = {
    /**
     * ID of the company this journal belongs to
     */
    companyId?: string | null | undefined;
    /**
     * Timestamp when the journal was created
     */
    createdAt?: Date | null | undefined;
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    /**
     * List of journal lines
     */
    lines?: Array<JournalLine> | null | undefined;
    /**
     * Memo or description for the journal
     */
    memo?: string | null | undefined;
    /**
     * Timestamp when the journal was posted
     */
    postedAt?: Date | null | undefined;
    /**
     * Reference number for the journal
     */
    reference?: string | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
    /**
     * Status of the journal
     */
    status?: Status | null | undefined;
    /**
     * Date of the journal transaction
     */
    transactionDate?: Date | null | undefined;
    /**
     * Timestamp when the journal was last updated
     */
    updatedAt?: Date | null | undefined;
};
/** @internal */
export declare const AccountingJournal4$inboundSchema: z.ZodType<AccountingJournal4, z.ZodTypeDef, unknown>;
export declare function accountingJournal4FromJSON(jsonString: string): SafeParseResult<AccountingJournal4, SDKValidationError>;
/** @internal */
export declare const AccountingJournalSourceValue$inboundSchema: z.ZodType<AccountingJournalSourceValue, z.ZodTypeDef, unknown>;
export declare function accountingJournalSourceValueFromJSON(jsonString: string): SafeParseResult<AccountingJournalSourceValue, SDKValidationError>;
/** @internal */
export declare const AccountingJournalValue$inboundSchema: z.ZodType<AccountingJournalValueOpen, z.ZodTypeDef, unknown>;
/** @internal */
export declare const Status$inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown>;
export declare function statusFromJSON(jsonString: string): SafeParseResult<Status, SDKValidationError>;
/** @internal */
export declare const AccountingJournal$inboundSchema: z.ZodType<AccountingJournal, z.ZodTypeDef, unknown>;
export declare function accountingJournalFromJSON(jsonString: string): SafeParseResult<AccountingJournal, SDKValidationError>;
//# sourceMappingURL=accountingjournal.d.ts.map