import type { Order, Return, ReturnItem } from '@farfetch/blackout-client'; import type { ReturnEntityDenormalized } from '../entities/index.js'; import type { StoreState } from '../types/index.js'; /** * Returns all return entities from the application state. * Please note that this might include returns that were fetched * from multiple requests. * * @param state - Application state. * * @returns All return entities. */ export declare const getReturns: (state: StoreState) => Record | undefined; /** * Returns all return item entities from the application state. * Please note that this might include return items that were fetched * from multiple requests. * * @param state - Application state. * * @returns All return item entities. */ export declare const getReturnItems: (state: StoreState) => Record | undefined; /** * Returns the return entity details denormalized from * the application state if found, undefined otherwise. * * @param state - Application state. * * @returns Return object. */ export declare const getReturn: (state: StoreState, returnId: Return['id']) => ReturnEntityDenormalized | undefined; /** * Returns the 'returnItems' entity from the application state. * * @param state - Application state. * @param returnItemId - Return item identifier. * * @returns Return item. */ export declare const getReturnItem: (state: StoreState, returnItemId: ReturnItem['id']) => ReturnItem | undefined; /** * Returns the loading status for the returns when * fetching or updating. * * @param state - Application state. * @param returnId - Id of the return. * * @returns Loading status of the passed in return * for the fetch or update operations. */ export declare const isReturnLoading: (state: StoreState, returnId: Return['id']) => boolean | undefined; /** * Returns the error for the fetch and update return requests. * * @param state - Application state. * * @returns Return error. */ export declare const getReturnError: (state: StoreState, returnId: Return['id']) => import("@farfetch/blackout-client").BlackoutError | null | undefined; /** * Returns the fetched status for the return fetching * or updating operations. * * @param state - Application state. * @param returnId - Id of the return. * * @returns IsFetched status of the passed in return * for the fetch or update operations. */ export declare const isReturnFetched: (state: StoreState, returnId: Return['id']) => boolean; /** * Returns the loading status for the fetch pickup capability request. * * @param state - Application state. * * @returns Loading status. */ export declare const isReturnPickupCapabilityLoading: (state: StoreState, returnId: Return['id'], pickupDay: string) => boolean | undefined; /** * Returns the error for the fetch pickup capability request. * * @param state - Application state. * * @returns Capabilities error. */ export declare const getReturnPickupCapabilityError: (state: StoreState, returnId: Return['id'], pickupDay: string) => import("@farfetch/blackout-client").BlackoutError | null | undefined; /** * Returns the pickup capability for a specific return and * pickup day. * * @param state - Application state. * * @returns PickupCapability or undefined if not found. */ export declare const getReturnPickupCapability: (state: StoreState, returnId: Return['id'], pickupDay: string) => import("../entities/index.js").ReturnPickupCapabilityEntity | undefined; /** * Returns the isFetched status for the fetch pickup capability request. * * @param state - Application state. * * @returns isFetched status. */ export declare const isReturnPickupCapabilityFetched: (state: StoreState, returnId: Return['id'], pickupDay: string) => boolean; /** * Returns all the returns associated to a provided order id. * * @param state - Application state. * @param orderId - Identifier of an order * * @returns Array of returns */ export declare const getOrderReturns: (state: StoreState, orderId: Order['id']) => Array | undefined;