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";
import { RawResponse } from "./rawresponse.js";
export type AccountingJournalResult4 = {};
export type AccountingJournalResultSourceValue = string | number | boolean | AccountingJournalResult4 | Array<any>;
/**
 * The journal status
 */
export declare enum AccountingJournalResultValue {
    Draft = "draft",
    Posted = "posted",
    Void = "void",
    UnmappedValue = "unmapped_value"
}
/**
 * The journal status
 */
export type AccountingJournalResultValueOpen = OpenEnum<typeof AccountingJournalResultValue>;
/**
 * Status of the journal
 */
export type AccountingJournalResultStatus = {
    sourceValue?: string | number | boolean | AccountingJournalResult4 | Array<any> | null | undefined;
    /**
     * The journal status
     */
    value?: AccountingJournalResultValueOpen | null | undefined;
};
export type AccountingJournalResultData = {
    /**
     * 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?: AccountingJournalResultStatus | null | undefined;
    /**
     * Date of the journal transaction
     */
    transactionDate?: Date | null | undefined;
    /**
     * Timestamp when the journal was last updated
     */
    updatedAt?: Date | null | undefined;
};
export type AccountingJournalResult = {
    data?: AccountingJournalResultData | null | undefined;
    raw?: Array<RawResponse> | null | undefined;
};
/** @internal */
export declare const AccountingJournalResult4$inboundSchema: z.ZodType<AccountingJournalResult4, z.ZodTypeDef, unknown>;
export declare function accountingJournalResult4FromJSON(jsonString: string): SafeParseResult<AccountingJournalResult4, SDKValidationError>;
/** @internal */
export declare const AccountingJournalResultSourceValue$inboundSchema: z.ZodType<AccountingJournalResultSourceValue, z.ZodTypeDef, unknown>;
export declare function accountingJournalResultSourceValueFromJSON(jsonString: string): SafeParseResult<AccountingJournalResultSourceValue, SDKValidationError>;
/** @internal */
export declare const AccountingJournalResultValue$inboundSchema: z.ZodType<AccountingJournalResultValueOpen, z.ZodTypeDef, unknown>;
/** @internal */
export declare const AccountingJournalResultStatus$inboundSchema: z.ZodType<AccountingJournalResultStatus, z.ZodTypeDef, unknown>;
export declare function accountingJournalResultStatusFromJSON(jsonString: string): SafeParseResult<AccountingJournalResultStatus, SDKValidationError>;
/** @internal */
export declare const AccountingJournalResultData$inboundSchema: z.ZodType<AccountingJournalResultData, z.ZodTypeDef, unknown>;
export declare function accountingJournalResultDataFromJSON(jsonString: string): SafeParseResult<AccountingJournalResultData, SDKValidationError>;
/** @internal */
export declare const AccountingJournalResult$inboundSchema: z.ZodType<AccountingJournalResult, z.ZodTypeDef, unknown>;
export declare function accountingJournalResultFromJSON(jsonString: string): SafeParseResult<AccountingJournalResult, SDKValidationError>;
//# sourceMappingURL=accountingjournalresult.d.ts.map